Top Description Fields Constructors Methods
com.fasterxml.jackson.datatype.jodamoney

public final Enum AmountRepresentation

extends Enum<AmountRepresentation>
Class Inheritance

Enumeration of available strategies used by MoneySerializer and MoneyDeserializer to represent amounts of Money.

Field Summary

Modifier and TypeField and Description
public static final AmountRepresentation
DECIMAL_NUMBER

Decimal number representation, where amount is (de)serialized as decimal number equal to Money's amount, e.g. 12.34 for Money.parse("EUR 12.34").

public static final AmountRepresentation
DECIMAL_STRING

Decimal string representation, where amount is (de)serialized as string containing decimal number equal to Money's amount, e.g. "12.34" for Money.parse("EUR 12.34").

public static final AmountRepresentation
MINOR_CURRENCY_UNIT

Minor currency unit representation, where amount is (de)serialized as long integer equal to Money's amount expressed in minor currency unit, e.g. 1234 for Money.parse("EUR 12.34"), 12345 for Money.parse("KWD 12.345") or 12 for Money.parse("JPY 12").

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AmountRepresentation
public static AmountRepresentation[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DECIMAL_NUMBERback to summary
public static final AmountRepresentation DECIMAL_NUMBER

Decimal number representation, where amount is (de)serialized as decimal number equal to Money's amount, e.g. 12.34 for Money.parse("EUR 12.34").

See Also
DecimalNumberAmountConverter
DECIMAL_STRINGback to summary
public static final AmountRepresentation DECIMAL_STRING

Decimal string representation, where amount is (de)serialized as string containing decimal number equal to Money's amount, e.g. "12.34" for Money.parse("EUR 12.34").

See Also
DecimalStringAmountConverter
MINOR_CURRENCY_UNITback to summary
public static final AmountRepresentation MINOR_CURRENCY_UNIT

Minor currency unit representation, where amount is (de)serialized as long integer equal to Money's amount expressed in minor currency unit, e.g. 1234 for Money.parse("EUR 12.34"), 12345 for Money.parse("KWD 12.345") or 12 for Money.parse("JPY 12").

See Also
MinorCurrencyUnitAmountConverter

Constructor Detail

AmountRepresentationback to summary
private AmountRepresentation()

Method Detail

valueOfback to summary
public static AmountRepresentation valueOf(String name)
valuesback to summary
public static AmountRepresentation[] values()