Enum Class TemperatureUnit

java.lang.Object
java.lang.Enum<TemperatureUnit>
com.lightning.northstar.util.TemperatureUnit
All Implemented Interfaces:
Serializable, Comparable<TemperatureUnit>, Constable

public enum TemperatureUnit extends Enum<TemperatureUnit>
  • Enum Constant Details

  • Field Details

    • ALL

      public static final TemperatureUnit[] ALL
    • name

      public final net.minecraft.network.chat.Component name
    • nameAndSymbol

      public final net.minecraft.network.chat.Component nameAndSymbol
    • symbol

      public final String symbol
    • fromCelsius

      public final DoubleUnaryOperator fromCelsius
    • toCelsius

      public final DoubleUnaryOperator toCelsius
  • Method Details

    • values

      public static TemperatureUnit[] 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 TemperatureUnit 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
    • fromCelsius

      public float fromCelsius(float celsius)
    • fromCelsius

      public double fromCelsius(double celsius)
    • toCelsius

      public float toCelsius(float celsius)
    • toCelsius

      public double toCelsius(double celsius)
    • format

      public String format(float temperature)
    • format

      public String format(double temperature)