Enum Class SIBaseUnits

java.lang.Object
java.lang.Enum<SIBaseUnits>
de.powerstat.validation.values.SIBaseUnits
All Implemented Interfaces:
IValueObject, Serializable, Comparable<SIBaseUnits>, Constable

public enum SIBaseUnits extends Enum<SIBaseUnits> implements IValueObject
SI base units.
See Also:
  • Enum Constant Details

    • SECOND

      public static final SIBaseUnits SECOND
      Time in seconds.
    • METRE

      public static final SIBaseUnits METRE
      Length in metre.
    • KILOGRAM

      public static final SIBaseUnits KILOGRAM
      Mass in kilogram.
    • AMPERE

      public static final SIBaseUnits AMPERE
      Wlectric current in ampere.
    • KELVIN

      public static final SIBaseUnits KELVIN
      thermodynamic temperature in kelvin.
    • MOLE

      public static final SIBaseUnits MOLE
      Amount of substance in mole.
    • CANDELA

      public static final SIBaseUnits CANDELA
      Luminous intensity in candela.
  • Field Details

    • symbol

      private final String symbol
      Unit symbol.
  • Constructor Details

    • SIBaseUnits

      private SIBaseUnits(String symbol)
      Ordinal constructor.
      Parameters:
      symbol - Unit symbol
  • Method Details

    • values

      public static SIBaseUnits[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SIBaseUnits valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static SIBaseUnits of(String value)
      SIBaseUnits factory.
      Parameters:
      value - Enum name string
      Returns:
      SIBaseUnits enum
    • getSymbol

      public String getSymbol()
      Get unit symbol.
      Returns:
      Symbol
    • stringValue

      public String stringValue()
      Returns the value of this SIBaseUnits as a string.
      Specified by:
      stringValue in interface IValueObject
      Returns:
      The text value represented by this object after conversion to type string.