Interface Amount
public interface Amount
Represents an amount of a currency
-
Method Summary
-
Method Details
-
getValue
BigDecimal getValue() -
getCurrency
Asset getCurrency() -
canEqual
Supports symmetricequalsacross theAmounttype hierarchy. The default accepts anyAmount; a subtype that adds a component to equality (e.g. a wallet's locked funds) narrows this so it never compares equal to a bare supertype instance in either direction. Follows the canonicalcanEqualpattern for value classes designed for inheritance.- Parameters:
other- the object being tested for equality against this amount- Returns:
- whether
othermay be considered equal to this amount
-
copyOf
-
of
-
of
-
add
-
add
-
add
-