@@ -21,7 +21,7 @@ public interface CurrencyHolder {
2121 * @return the formatted amount as a string
2222 * @deprecated use {@link Currency#format(Number, Locale)}
2323 */
24- @ Deprecated (forRemoval = true , since = "2.4 .0" )
24+ @ Deprecated (forRemoval = true , since = "3.0 .0" )
2525 default String format (Number amount ) {
2626 return PlainTextComponentSerializer .plainText ().serialize (getDefaultCurrency ().format (amount , Locale .US ));
2727 }
@@ -32,7 +32,7 @@ default String format(Number amount) {
3232 * @return the number of fractional digits used for formatting currency amounts
3333 * @deprecated use {@link Currency#getFractionalDigits()}
3434 */
35- @ Deprecated (forRemoval = true , since = "2.4 .0" )
35+ @ Deprecated (forRemoval = true , since = "3.0 .0" )
3636 default int fractionalDigits () {
3737 return getDefaultCurrency ().getFractionalDigits ();
3838 }
@@ -42,6 +42,7 @@ default int fractionalDigits() {
4242 *
4343 * @return an unmodifiable set of currencies
4444 * @throws UnsupportedOperationException if {@link #hasMultiCurrencySupport()} is {@code false}
45+ * @since 3.0.0
4546 */
4647 default @ Unmodifiable Set <Currency > getCurrencies () {
4748 throw new UnsupportedOperationException ("Not implemented yet" );
@@ -53,6 +54,7 @@ default int fractionalDigits() {
5354 * @param name the name of the currency to retrieve
5455 * @return an {@code Optional} containing the currency, or empty
5556 * @throws UnsupportedOperationException if {@link #hasMultiCurrencySupport()} is {@code false}
57+ * @since 3.0.0
5658 */
5759 default Optional <Currency > getCurrency (String name ) {
5860 throw new UnsupportedOperationException ("Not implemented yet" );
@@ -64,6 +66,7 @@ default Optional<Currency> getCurrency(String name) {
6466 * @param name the name of the currency to check for existence
6567 * @return {@code true} if the currency exists, otherwise {@code false}
6668 * @throws UnsupportedOperationException if {@link #hasMultiCurrencySupport()} is {@code false}
69+ * @since 3.0.0
6770 */
6871 default boolean hasCurrency (String name ) {
6972 throw new UnsupportedOperationException ("Not implemented yet" );
@@ -78,6 +81,7 @@ default boolean hasCurrency(String name) {
7881 * @param builder a consumer to configure the {@link Currency.Builder} for currency creation
7982 * @return an optional containing the created {@link Currency}, or empty
8083 * @throws UnsupportedOperationException if {@link #hasMultiCurrencySupport()} is {@code false}
84+ * @since 3.0.0
8185 */
8286 default Optional <Currency > createCurrency (String name , Consumer <Currency .Builder > builder ) {
8387 throw new UnsupportedOperationException ("Not implemented yet" );
@@ -89,6 +93,7 @@ default Optional<Currency> createCurrency(String name, Consumer<Currency.Builder
8993 * @param name the name of the currency to delete
9094 * @return {@code true} if the currency was successfully deleted, otherwise {@code false}
9195 * @throws UnsupportedOperationException if {@link #hasMultiCurrencySupport()} is {@code false}
96+ * @since 3.0.0
9297 */
9398 default boolean deleteCurrency (String name ) {
9499 throw new UnsupportedOperationException ("Not implemented yet" );
@@ -98,6 +103,7 @@ default boolean deleteCurrency(String name) {
98103 * Retrieves the default currency for this economy controller.
99104 *
100105 * @return the default currency
106+ * @since 3.0.0
101107 */
102108 Currency getDefaultCurrency ();
103109
@@ -111,6 +117,7 @@ default boolean deleteCurrency(String name) {
111117 * @see #getCurrencies()
112118 * @see #getCurrency(String)
113119 * @see #hasCurrency(String)
120+ * @since 3.0.0
114121 */
115122 default boolean hasMultiCurrencySupport () {
116123 return false ;
0 commit comments