Class BaseUnit
java.lang.Object
java.lang.Number
gnu.math.Numeric
gnu.math.Quantity
gnu.math.Unit
gnu.math.NamedUnit
gnu.math.BaseUnit
- All Implemented Interfaces:
Externalizable, Serializable
A primitive Unit of measurement (such as a meter).
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Unit
define, define, dimensions, divide, doubleValue, isExact, isZero, number, pow, power, sqrt, times, toString, toString, toStringMethods inherited from class Quantity
abs, add, add, addReversed, compare, compare, compareReversed, div, divide, divReversed, doubleImagValue, doubleJmagValue, doubleKmagValue, im, imValue, jm, jmValue, km, kmValue, make, make, make, mul, mulReversed, neg, re, reValue, times, toStringMethods inherited from class Numeric
add, asNumericOrNull, div_inv, equals, floatValue, geq, grt, intValue, longValue, mul_ident, sub, toExact, toInexactMethods inherited from class Number
byteValue, shortValue
-
Constructor Details
-
BaseUnit
public BaseUnit()Should only be used for serialization, and Unit.Empty. -
BaseUnit
-
BaseUnit
-
-
Method Details
-
getDimension
-
init
-
hashCode
-
unit
-
lookup
-
make
-
compare
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classNamedUnit- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classNamedUnit- Throws:
IOExceptionClassNotFoundException
-
readResolve
- Overrides:
readResolvein classNamedUnit- Throws:
ObjectStreamException
-