-
-
Method Summary
Construct a MptCurrencyAmount builder.
builder(com.google.common.primitives.UnsignedLong value)
Construct a
MptCurrencyAmount builder, setting
value() to the string representation of the
supplied
UnsignedLong.
default boolean
Indicates whether this amount is positive or negative.
default com.google.common.primitives.UnsignedLong
The amount value, as an UnsignedLong.
-
Method Details
-
-
-
-
-
unsignedLongValue
@Auxiliary
default com.google.common.primitives.UnsignedLong unsignedLongValue()
The amount value, as an UnsignedLong.
- Returns:
- An
UnsignedLong.
-
isNegative
@Derived
@Auxiliary
default boolean isNegative()
Indicates whether this amount is positive or negative.
- Specified by:
isNegative in interface CurrencyAmount
- Returns:
true if this amount is negative; false otherwise (i.e., if the value is 0 or positive).