All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.greenpepper.samples.application.bank.LimitOfWithdrawal Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.samples.application.bank;

/**
 * 

LimitOfWithdrawal class.

* * @author oaouattara * @version $Id: $Id */ public class LimitOfWithdrawal { private AccountType accountType; private WithdrawType withdrawType; /** *

Getter for the field accountType.

* * @return a {@link com.greenpepper.samples.application.bank.AccountType} object. */ public AccountType getAccountType() { return accountType; } /** *

Setter for the field accountType.

* * @param accountType a {@link com.greenpepper.samples.application.bank.AccountType} object. */ public void setAccountType(AccountType accountType) { this.accountType = accountType; } /** *

Getter for the field withdrawType.

* * @return a {@link com.greenpepper.samples.application.bank.WithdrawType} object. */ public WithdrawType getWithdrawType() { return withdrawType; } /** *

Setter for the field withdrawType.

* * @param withdrawType a {@link com.greenpepper.samples.application.bank.WithdrawType} object. */ public void setWithdrawType(WithdrawType withdrawType) { this.withdrawType = withdrawType; } /** *

getLimit.

* * @return a {@link com.greenpepper.samples.application.bank.Money} object. */ public Money getLimit() { return accountType.limitFor(withdrawType); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy