public enum SiUnit extends Enum<SiUnit>
Enum Constant and Description |
---|
AMPERE
Unit of electric current.
|
CANDELA
Unit of luminous intensity.
|
KELVIN
Unit of thermodynamic temperature.
|
KILOGRAM
Unit of mass.
|
METER
Unit of length.
|
MOLE
Unit of amount of substance.
|
SECOND
Unit of time (duration).
|
Modifier and Type | Method and Description |
---|---|
String |
getSymbol()
Gets the symbol of this SiUnit.
|
org.josef.science.SiUnit.SiUnitType |
getType()
Gets the type of this SiUnit.
|
String |
toString()
Creates a String representation of this SiUnit.
|
static SiUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SiUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SiUnit METER
public static final SiUnit KILOGRAM
public static final SiUnit SECOND
public static final SiUnit AMPERE
public static final SiUnit KELVIN
public static final SiUnit MOLE
public static final SiUnit CANDELA
public static SiUnit[] values()
for (SiUnit c : SiUnit.values()) System.out.println(c);
public static SiUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSymbol()
public org.josef.science.SiUnit.SiUnitType getType()
Copyright © 2008–2018. All rights reserved.