Quantity interface.
For use in other quantities, when supposed to work on Comparables.
It extends Quantity with Comparable and Serializable
Quantity
| Modifier and Type | Method and Description |
|---|---|
| public ComparableQuantity | add(Quantity<Q>
the that)Quantity to be added.Redeclares javax. Returns the sum of this |
| public <T extends Quantity | asType(Class<T>
the quantity class identifying the nature of the quantity. type)Redeclares javax. Casts this quantity to a parameterized unit of specified nature or throw a
|
| public ComparableQuantity | divide(Quantity<?>
the that)Quantity divisor.Redeclares javax. Returns the quotient of this |
| public ComparableQuantity | divide(Number
the that)Number divisor.Redeclares javax. Returns the quotient of this |
| public <T extends Quantity | Returns: the QuantityOperations multiplied and convertedquantity to be multiplied that, Class<E> quantity to be converted asTypeQuantity)Multiply and cast the |
| public ComparableQuantity | inverse()
Redeclares javax. Returns a |
| public <T extends Quantity | |
| public boolean | Returns: true if this > that.the that)quantity<Q> to be compared with this instance.Compares two instances of |
| public boolean | Returns: true if this >= that.the that)quantity<Q> to be compared with this instance.Compares two instances of |
| public boolean | Returns: true if this < that.the that)quantity<Q> to be compared with this instance.Compares two instances of |
| public boolean | Returns: true if this <= that.the that)quantity<Q> to be compared with this instance.Compares two instances of |
| public ComparableQuantity | multiply(Quantity<?>
the multiplier)Quantity multiplicand.Redeclares javax. Returns the product of this |
| public ComparableQuantity | multiply(Number
the multiplier)Number multiplicand.Redeclares javax. Returns the product of this |
| public <T extends Quantity | Returns: the QuantityOperations multiplied and convertedquantity to be divided that, Class<E> quantity to be converted asTypeQuantity)Divide and cast the |
| public ComparableQuantity | subtract(Quantity<Q>
the that)Quantity to be subtracted.Redeclares javax. Returns the difference between this |
| public ComparableQuantity | to(Unit<Q>
the unit)Unit unit in which the returned quantity is stated.Redeclares javax. Returns this |
| add | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the sum of this
| |
| asType | back to summary |
|---|---|
| public <T extends Quantity Redeclares javax. Doc from javax. Casts this quantity to a parameterized unit of specified nature or throw a
| |
| divide | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the quotient of this
| |
| divide | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the quotient of this
| |
| divide | back to summary |
|---|---|
| public <T extends Quantity Multiply and cast the
| |
| inverse | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns a
| |
| inverse | back to summary |
|---|---|
| public <T extends Quantity invert and already cast to defined quantityClass
| |
| isGreaterThan | back to summary |
|---|---|
| public boolean isGreaterThan(Quantity<Q> that) Compares two instances of
| |
| isGreaterThanOrEqualTo | back to summary |
|---|---|
| public boolean isGreaterThanOrEqualTo(Quantity<Q> that) Compares two instances of
| |
| isLessThan | back to summary |
|---|---|
| public boolean isLessThan(Quantity<Q> that) Compares two instances of
| |
| isLessThanOrEqualTo | back to summary |
|---|---|
| public boolean isLessThanOrEqualTo(Quantity<Q> that) Compares two instances of
| |
| multiply | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the product of this
| |
| multiply | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the product of this
| |
| multiply | back to summary |
|---|---|
| public <T extends Quantity Divide and cast the
| |
| subtract | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns the difference between this
| |
| to | back to summary |
|---|---|
| public ComparableQuantity Redeclares javax. Doc from javax. Returns this
| |