This class represents mixed-radix quantities (like "1 hour, 5 min, 30 sec" or "6 ft, 3 in").
MixedRadix
| Modifier and Type | Field and Description |
|---|---|
| private Quantity. | |
| private Unit | |
| private MixedRadix | |
| private final Object[] | |
| private final List | |
| private static final long | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | MixedQuantity(final List<Quantity<Q>>
- the list of quantities to construct this MixedQuantity. quantities)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if this and obj are considered equal; falseotherwise.the object to compare for equality. obj)Overrides java. Indicates if this mixed quantity is considered equal to the specified object (both are mixed units with same composing units in the same order). |
| public static <Q extends Quantity | |
| public List | Returns: a list containing the quantities, not nullGets quantities in this MixedQuantity. |
| public List | Returns: a list containing the units, not nullGets the list of units in this MixedQuantity. |
| private static void | |
| private static <Q extends Quantity | |
| public int | |
| public static <Q extends Quantity | |
| public static <Q extends Quantity | |
| public Quantity | Returns: the sum of all quantities in this MixedQuantity or a new quantity stated in the specified unit.the unit)Unit unit in which the returned quantity is stated.Implements tech. Returns the sum of all quantity values in this MixedQuantity converted into another (compatible) unit. |
| public String |
| commonScale | back to summary |
|---|---|
| private Quantity. | |
| leastSignificantUnit | back to summary |
|---|---|
| private Unit<Q> leastSignificantUnit | |
| mixedRadixIfPossible | back to summary |
|---|---|
| private MixedRadix<Q> mixedRadixIfPossible | |
| quantityArray | back to summary |
|---|---|
| private final Object[] quantityArray | |
| quantityList | back to summary |
|---|---|
| private final List<Quantity<Q>> quantityList | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| unitList | back to summary |
|---|---|
| private final List<Unit<Q>> unitList | |
| MixedQuantity | back to summary |
|---|---|
| protected MixedQuantity(final List<Quantity<Q>> quantities) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Indicates if this mixed quantity is considered equal to the specified object (both are mixed units with same composing units in the same order).
| |
| fromArray | back to summary |
|---|---|
public static <Q extends Quantity
| |
| getQuantities | back to summary |
|---|---|
| public List Gets quantities in this MixedQuantity. | |
| getUnits | back to summary |
|---|---|
| public List Gets the list of units in this MixedQuantity.
This list can be used in conjunction with | |
| guardAgainstIllegalQuantitiesArgument | back to summary |
|---|---|
| private static void guardAgainstIllegalQuantitiesArgument(Quantity<?>[] quantities) | |
| guardAgainstIllegalQuantitiesArgument | back to summary |
|---|---|
| private static <Q extends Quantity | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| of | back to summary |
|---|---|
public static <Q extends Quantity
| |
| of | back to summary |
|---|---|
public static <Q extends Quantity
| |
| to | back to summary |
|---|---|
| public Quantity Implements tech. Returns the sum of all quantity values in this MixedQuantity converted into another (compatible) unit.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |