public class NamedUnit extends Unit implements java.io.Externalizable
Constructor and Description |
---|
NamedUnit() |
NamedUnit(java.lang.String name,
double factor,
Unit base) |
NamedUnit(java.lang.String name,
DQuantity value) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
protected void |
init() |
static NamedUnit |
lookup(java.lang.String name) |
static NamedUnit |
lookup(java.lang.String name,
double scale,
Unit base) |
static NamedUnit |
make(java.lang.String name,
double scale,
Unit base) |
static NamedUnit |
make(java.lang.String name,
Quantity value) |
void |
readExternal(java.io.ObjectInput in) |
java.lang.Object |
readResolve() |
void |
writeExternal(java.io.ObjectOutput out) |
define, define, dimensions, divide, doubleValue, hashCode, isExact, isZero, number, pow, power, sqrt, times, toString, toString, toString, unit
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, toString
public NamedUnit()
public NamedUnit(java.lang.String name, DQuantity value)
public NamedUnit(java.lang.String name, double factor, Unit base)
protected void init()
public static NamedUnit lookup(java.lang.String name)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException