|
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.Weight
public class Weight
weight unit with conversion capabilities
SIBaseUnit.KILOGRAM,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
Weight.Type
|
| Nested classes/interfaces inherited from interface com.antelmann.util.Localizable |
|---|
Localizable.Adapter |
| Field Summary | |
|---|---|
static Weight |
G
gram |
static Weight |
KG
Kilogram |
static Weight |
KT
carat |
static Weight |
LB
Pound |
static Weight |
MG
Miligram |
static Weight |
OZ
Ounce |
static Weight |
ST
Stone |
static Weight |
T
Tonne (metric ton) |
static Weight |
ZTR
Zentner |
| Fields inherited from class com.antelmann.math.BaseUnit |
|---|
CONVERTER |
| Fields inherited from class com.antelmann.math.DefaultUnit |
|---|
name, symbol |
| Constructor Summary | |
|---|---|
Weight(String symbol,
String name,
Number factor)
|
|
| Method Summary | |
|---|---|
static Weight |
fromSymbol(String symbol)
|
static Weight[] |
getKnownValues()
|
| 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 Weight KG
public static final Weight T
public static final Weight G
public static final Weight MG
public static final Weight LB
public static final Weight ZTR
public static final Weight OZ
public static final Weight ST
public static final Weight KT
| Constructor Detail |
|---|
public Weight(String symbol,
String name,
Number factor)
| Method Detail |
|---|
public static Weight fromSymbol(String symbol)
public static Weight[] getKnownValues()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||