public final class QuantityDimension extends Object implements Serializable, Comparable
Constructor and Description |
---|
QuantityDimension()
Constructs from nothing (i.e.
|
QuantityDimension(QuantityDimension that)
Constructs from another dimension of a quantity.
|
QuantityDimension(Unit unit)
Constructs from an existing Unit.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Compare this dimension of a quantity to another.
|
QuantityDimension |
divide(QuantityDimension that)
Divide this dimension of a quantity by another.
|
boolean |
equals(Object obj)
Indicate whether or not this dimension of a quantity is the same as
another.
|
boolean |
isDimensionless()
Indicate whether or not this dimension of a quantity is dimensionless.
|
static void |
main(String[] args)
Test this class.
|
QuantityDimension |
multiply(QuantityDimension that)
Multiply this dimension of a quantity by another.
|
QuantityDimension |
raise(int power)
Raise this dimension of a quantity by a power.
|
String |
toString()
Return a string representation of this dimension of a quantity.
|
public QuantityDimension()
public QuantityDimension(QuantityDimension that)
public QuantityDimension(Unit unit) throws UnitException
UnitException
public int compareTo(Object obj)
compareTo
in interface Comparable
public boolean equals(Object obj)
public QuantityDimension raise(int power)
public QuantityDimension multiply(QuantityDimension that)
public QuantityDimension divide(QuantityDimension that)
public boolean isDimensionless()
public String toString()
public static void main(String[] args)
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.