herschel.share.unit
| Enum Constant and Description |
|---|
ELECTRON_CHARGE
1.602176487E-19 C (
ElectricCharge.COULOMBS) |
H_PLANCK
6.62606896E-34 J s (
AngularMomentum.JOULE_SECOND) |
K_BOLTZMANN
1.3806505E-23 J/K (
Entropy.JOULES_PER_KELVIN) |
SPEED_OF_LIGHT
299792458 m/s (
Speed.METERS_PER_SECOND) |
| Modifier and Type | Method and Description |
|---|---|
Unit<?> |
getUnit()
Returns the unit.
|
double |
getValue()
Returns the value.
|
java.lang.String |
toString()
Returns a string representation of this constant.
|
static Constant |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constant[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constant ELECTRON_CHARGE
ElectricCharge.COULOMBS)public static final Constant H_PLANCK
AngularMomentum.JOULE_SECOND)public static final Constant K_BOLTZMANN
Entropy.JOULES_PER_KELVIN)public static final Constant SPEED_OF_LIGHT
Speed.METERS_PER_SECOND)public static Constant[] values()
for (Constant c : Constant.values()) System.out.println(c);
public static Constant 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 namejava.lang.NullPointerException - if the argument is nullpublic Unit<?> getUnit()
public double getValue()
public java.lang.String toString()
toString in class java.lang.Enum<Constant>