|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<BaseUnits>
net.sf.magnitude.core.BaseUnits
public enum BaseUnits
Base units for the Magnitude
class.
Enum Constant Summary | |
---|---|
A
Ampere. |
|
CD
Candela. |
|
K
Kelvin. |
|
KG
Kilogramme. |
|
M
Meter. |
|
MOL
Mole. |
|
PX
Pixel. |
|
RAD
Radian. |
|
S
Second. |
|
SR
Steradian. |
Method Summary | |
---|---|
int |
getIndex()
Returns the index of the unit in the base unit exponent array of Magnitude s. |
static BaseUnits |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static BaseUnits[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BaseUnits KG
public static final BaseUnits M
public static final BaseUnits S
public static final BaseUnits K
public static final BaseUnits A
public static final BaseUnits MOL
public static final BaseUnits CD
public static final BaseUnits RAD
public static final BaseUnits SR
public static final BaseUnits PX
Method Detail |
---|
public static BaseUnits[] values()
for (BaseUnits c : BaseUnits.values()) System.out.println(c);
public static BaseUnits valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int getIndex()
Magnitude
s.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |