@Immutable public final class QuantityDimension extends Dimension
| Modifier | Constructor and Description |
|---|---|
|
QuantityDimension()
Constructs from nothing.
|
|
QuantityDimension(BaseQuantity baseQuantity)
Constructs from a base quantity.
|
protected |
QuantityDimension(Factor[] factors)
Constructs from an array of Factor-s.
|
| Modifier and Type | Method and Description |
|---|---|
QuantityDimension |
divideBy(QuantityDimension that)
Divides this quantity dimension by another quantity dimension.
|
QuantityDimension |
multiplyBy(QuantityDimension that)
Multiplies this quantity dimension by another quantity dimension.
|
QuantityDimension |
raiseTo(int power)
Raises this quantity dimension to a power.
|
equals, getFactors, getRank, hashCode, isDimensionless, isReciprocalOf, mult, pow, toStringpublic QuantityDimension()
public QuantityDimension(BaseQuantity baseQuantity)
baseQuantity - The base quantity constituting the dimension.protected QuantityDimension(Factor[] factors)
factors - The Factor-s constituting the dimension.public QuantityDimension multiplyBy(QuantityDimension that)
that - The other quantity dimension.public QuantityDimension divideBy(QuantityDimension that)
that - The quantity dimension to divide this
quantity dimension by.public QuantityDimension raiseTo(int power)
power - The power to raise this quantity dimension by.power.