@@ -20,8 +20,8 @@ public interface Account extends Comparable<Account> {
2020 *
2121 * @return the {@code CurrencyHolder} capable of managing currencies for the account
2222 */
23- CurrencyHolder getController ();
2423 @ Contract (pure = true )
24+ CurrencyHolder getHolder ();
2525
2626 /**
2727 * Deposits the specified amount into the account balance.
@@ -32,7 +32,7 @@ public interface Account extends Comparable<Account> {
3232 */
3333 @ Deprecated (forRemoval = true , since = "3.0.0" )
3434 default BigDecimal deposit (Number amount ) {
35- return deposit (amount , getController ().getDefaultCurrency ());
35+ return deposit (amount , getHolder ().getDefaultCurrency ());
3636 }
3737
3838 /**
@@ -52,7 +52,7 @@ default BigDecimal deposit(Number amount) {
5252 */
5353 @ Deprecated (forRemoval = true , since = "3.0.0" )
5454 default BigDecimal getBalance () {
55- return getBalance (getController ().getDefaultCurrency ());
55+ return getBalance (getHolder ().getDefaultCurrency ());
5656 }
5757
5858 BigDecimal getBalance (Currency currency );
@@ -66,7 +66,7 @@ default BigDecimal getBalance() {
6666 */
6767 @ Deprecated (forRemoval = true , since = "3.0.0" )
6868 default BigDecimal withdraw (Number amount ) {
69- return withdraw (amount , getController ().getDefaultCurrency ());
69+ return withdraw (amount , getHolder ().getDefaultCurrency ());
7070 }
7171
7272 /**
@@ -103,7 +103,7 @@ default BigDecimal withdraw(Number amount) {
103103 @ Override
104104 @ Deprecated (forRemoval = true , since = "3.0.0" )
105105 default int compareTo (Account account ) {
106- return compareTo (account , getController ().getDefaultCurrency ());
106+ return compareTo (account , getHolder ().getDefaultCurrency ());
107107 }
108108
109109 /**
@@ -126,7 +126,7 @@ default int compareTo(Account account, Currency currency) {
126126 */
127127 @ Deprecated (forRemoval = true , since = "3.0.0" )
128128 default void setBalance (Number balance ) {
129- setBalance (balance , getController ().getDefaultCurrency ());
129+ setBalance (balance , getHolder ().getDefaultCurrency ());
130130 }
131131
132132 /**
0 commit comments