@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.
|
static void |
main(java.lang.String[] args)
Tests this class.
|
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, toString
public 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
.public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception