Skip to content

Commit 7b15785

Browse files
committed
[ci skip] Added @since 3.0.0 annotations to API methods
Documented version information for newly introduced methods in `Bank` and `Account` to improve clarity and maintainability.
1 parent 75f6fa4 commit 7b15785

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/main/java/net/thenextlvl/service/api/economy/Account.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ default int compareTo(Account account, Currency currency) {
9797
*
9898
* @param currency the currency to check support for
9999
* @return {@code true} if the account can hold the specified currency, otherwise {@code false}
100+
* @since 3.0.0
100101
*/
101102
boolean canHold(Currency currency);
102103
}

src/main/java/net/thenextlvl/service/api/economy/bank/Bank.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ default boolean setOwner(OfflinePlayer player) {
119119
* @param amount the amount being attempted to deposit
120120
* @param currency the currency of the deposit
121121
* @return {@code true} if the player can deposit the specified amount, otherwise {@code false}
122+
* @since 3.0.0
122123
*/
123124
default boolean canDeposit(OfflinePlayer player, Number amount, Currency currency) {
124125
return canDeposit(player.getUniqueId(), amount, currency);
@@ -133,6 +134,7 @@ default boolean canDeposit(OfflinePlayer player, Number amount, Currency currenc
133134
* @param amount the amount being attempted to deposit
134135
* @param currency the currency of the deposit
135136
* @return {@code true} if the player can deposit the specified amount, otherwise {@code false}
137+
* @since 3.0.0
136138
*/
137139
boolean canDeposit(UUID uuid, Number amount, Currency currency);
138140

@@ -145,6 +147,7 @@ default boolean canDeposit(OfflinePlayer player, Number amount, Currency currenc
145147
* @param amount the amount being attempted to withdraw
146148
* @param currency the currency of the withdrawal
147149
* @return {@code true} if the player can withdraw the specified amount, otherwise {@code false}
150+
* @since 3.0.0
148151
*/
149152
default boolean canWithdraw(OfflinePlayer player, Number amount, Currency currency) {
150153
return canWithdraw(player.getUniqueId(), amount, currency);
@@ -159,6 +162,7 @@ default boolean canWithdraw(OfflinePlayer player, Number amount, Currency curren
159162
* @param amount the amount being attempted to withdraw
160163
* @param currency the currency of the withdrawal
161164
* @return {@code true} if the player can withdraw the specified amount, otherwise {@code false}
165+
* @since 3.0.0
162166
*/
163167
boolean canWithdraw(UUID uuid, Number amount, Currency currency);
164168
}

0 commit comments

Comments
 (0)