Interface Currency
- All Superinterfaces:
Comparable<Currency>, Currency, OsidPrimitive, OsidPrimitive, Serializable
This primitive represents a currency amount.
-
Method Summary
Modifier and TypeMethodDescriptionGets the total amount.Gets the currency type.Methods inherited from interface Currency
compareTo, equals, hashCode, isLarger, isSmallerModifier and TypeMethodDescriptionintCompares this currency with the specified Currency for order.booleanDetermines if the givenCurrencyis equal to this one.inthashCode()Returns a hash code value for thisCurrency.booleanTests if this Currency is greater than the given Currency.booleanTests if this Currency is less than the given Currency.Methods inherited from interface OsidPrimitive
toString
-
Method Details
-
getCurrencyType
Type getCurrencyType()Gets the currency type.- Returns:
- the currency type
- Compliance:
mandatory- This method must be implemented.
-
getAmount
BigDecimal getAmount()Gets the total amount.- Returns:
- the amount
- Compliance:
mandatory- This method must be implemented.
-