public enum CommonDimensionlessUnit extends Enum<CommonDimensionlessUnit> implements DimensionlessUnit
Enum Constant and Description |
---|
kA
Fine-structure constant, the coupling constant for the electromagnetic force.
|
mol
The mole is a unit which measures the number of particles in a substance.
|
phi
Phi is the ratio: A/B = B/C where A = B + C
|
pi
Pi is the ratio: Circumference/Diameter.
|
Modifier and Type | Method and Description |
---|---|
Rational |
getAmount() |
String |
getUnitName() |
String |
getUnitSymbol() |
static CommonDimensionlessUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonDimensionlessUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
emptyArray, getClass, jailbreak, notify, notifyAll, wait, wait, wait
postfixBind, postfixBind, postfixBind, postfixBind, postfixBind, postfixBind, postfixBind, postfixBind
public static final CommonDimensionlessUnit pi
public static final CommonDimensionlessUnit phi
public static final CommonDimensionlessUnit kA
public static final CommonDimensionlessUnit mol
public static CommonDimensionlessUnit[] values()
for (CommonDimensionlessUnit c : CommonDimensionlessUnit.values()) System.out.println(c);
public static CommonDimensionlessUnit 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 Rational getAmount()
getAmount
in interface DimensionlessUnit
public String getUnitName()
getUnitName
in interface DimensionlessUnit
public String getUnitSymbol()
getUnitSymbol
in interface DimensionlessUnit
Copyright © 2024. All rights reserved.