public static enum CustomConversionsProvider.CurrencyCodeToCurrency extends java.lang.Enum<CustomConversionsProvider.CurrencyCodeToCurrency> implements org.springframework.core.convert.converter.Converter<java.lang.String,java.util.Currency>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
java.util.Currency |
convert(java.lang.String currencyCode) |
static CustomConversionsProvider.CurrencyCodeToCurrency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CustomConversionsProvider.CurrencyCodeToCurrency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomConversionsProvider.CurrencyCodeToCurrency INSTANCE
public static CustomConversionsProvider.CurrencyCodeToCurrency[] values()
for (CustomConversionsProvider.CurrencyCodeToCurrency c : CustomConversionsProvider.CurrencyCodeToCurrency.values()) System.out.println(c);
public static CustomConversionsProvider.CurrencyCodeToCurrency valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.util.Currency convert(java.lang.String currencyCode)
convert
in interface org.springframework.core.convert.converter.Converter<java.lang.String,java.util.Currency>