|
| 1 | +package com.baeldung.commons.chain; |
| 2 | + |
| 3 | +import org.apache.commons.chain.impl.ContextBase; |
| 4 | + |
| 5 | +public class AtmRequestContext extends ContextBase { |
| 6 | + |
| 7 | + int totalAmountToBeWithdrawn; |
| 8 | + int noOfHundredsDispensed; |
| 9 | + int noOfFiftiesDispensed; |
| 10 | + int noOfTensDispensed; |
| 11 | + int amountLeftToBeWithdrawn; |
| 12 | + |
| 13 | + public int getTotalAmountToBeWithdrawn() { |
| 14 | + return totalAmountToBeWithdrawn; |
| 15 | + } |
| 16 | + |
| 17 | + public void setTotalAmountToBeWithdrawn(int totalAmountToBeWithdrawn) { |
| 18 | + this.totalAmountToBeWithdrawn = totalAmountToBeWithdrawn; |
| 19 | + } |
| 20 | + |
| 21 | + public int getNoOfHundredsDispensed() { |
| 22 | + return noOfHundredsDispensed; |
| 23 | + } |
| 24 | + |
| 25 | + public void setNoOfHundredsDispensed(int noOfHundredsDispensed) { |
| 26 | + this.noOfHundredsDispensed = noOfHundredsDispensed; |
| 27 | + } |
| 28 | + |
| 29 | + public int getNoOfFiftiesDispensed() { |
| 30 | + return noOfFiftiesDispensed; |
| 31 | + } |
| 32 | + |
| 33 | + public void setNoOfFiftiesDispensed(int noOfFiftiesDispensed) { |
| 34 | + this.noOfFiftiesDispensed = noOfFiftiesDispensed; |
| 35 | + } |
| 36 | + |
| 37 | + public int getNoOfTensDispensed() { |
| 38 | + return noOfTensDispensed; |
| 39 | + } |
| 40 | + |
| 41 | + public void setNoOfTensDispensed(int noOfTensDispensed) { |
| 42 | + this.noOfTensDispensed = noOfTensDispensed; |
| 43 | + } |
| 44 | + |
| 45 | + public int getAmountLeftToBeWithdrawn() { |
| 46 | + return amountLeftToBeWithdrawn; |
| 47 | + } |
| 48 | + |
| 49 | + public void setAmountLeftToBeWithdrawn(int amountLeftToBeWithdrawn) { |
| 50 | + this.amountLeftToBeWithdrawn = amountLeftToBeWithdrawn; |
| 51 | + } |
| 52 | +} |
0 commit comments