|
Holger's Java API |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.antelmann.math.DefaultUnit
com.antelmann.math.BaseUnit
com.antelmann.math.LengthUnit
public class LengthUnit
length unit with conversion capabilities
SIBaseUnit.METER,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.antelmann.util.Localizable |
|---|
Localizable.Adapter |
| Field Summary | |
|---|---|
static LengthUnit |
CM
|
static LengthUnit |
DM
|
static LengthUnit |
FEET
|
static LengthUnit |
INCH
|
static LengthUnit |
KM
|
static LengthUnit |
LIGHTYEAR
|
static LengthUnit |
METER
|
static LengthUnit |
MILE
|
static LengthUnit |
MM
|
static LengthUnit |
NMILE
|
static LengthUnit |
YARD
|
| Fields inherited from class com.antelmann.math.BaseUnit |
|---|
CONVERTER |
| Fields inherited from class com.antelmann.math.DefaultUnit |
|---|
name, symbol |
| Constructor Summary | |
|---|---|
LengthUnit(String symbol,
String name,
Number factor)
|
|
| Method Summary | |
|---|---|
static LengthUnit |
fromSymbol(String symbol)
|
static LengthUnit[] |
getAll()
|
static LengthUnit[] |
getMetricValues()
|
| Methods inherited from class com.antelmann.math.BaseUnit |
|---|
convert, convert, fromBaseUnit, getBase, toBaseUnit, toBaseUnit |
| Methods inherited from class com.antelmann.math.DefaultUnit |
|---|
equals, getLocale, getUnitName, getUnitSymbol, hashCode, setLocale, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final LengthUnit METER
public static final LengthUnit KM
public static final LengthUnit DM
public static final LengthUnit CM
public static final LengthUnit MM
public static final LengthUnit YARD
public static final LengthUnit FEET
public static final LengthUnit INCH
public static final LengthUnit MILE
public static final LengthUnit NMILE
public static final LengthUnit LIGHTYEAR
| Constructor Detail |
|---|
public LengthUnit(String symbol,
String name,
Number factor)
| Method Detail |
|---|
public static LengthUnit[] getAll()
public static LengthUnit[] getMetricValues()
public static LengthUnit fromSymbol(String symbol)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||