Package com.lightning.northstar.util
Enum Class TemperatureUnit
- All Implemented Interfaces:
Serializable,Comparable<TemperatureUnit>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TemperatureUnit[]final DoubleUnaryOperatorfinal net.minecraft.network.chat.Componentfinal net.minecraft.network.chat.Componentfinal Stringfinal DoubleUnaryOperator -
Method Summary
Modifier and TypeMethodDescriptionformat(double temperature) format(float temperature) doublefromCelsius(double celsius) floatfromCelsius(float celsius) doubletoCelsius(double celsius) floattoCelsius(float celsius) static TemperatureUnitReturns the enum constant of this class with the specified name.static TemperatureUnit[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CELSIUS
-
FAHRENHEIT
-
KELVIN
-
-
Field Details
-
ALL
-
name
public final net.minecraft.network.chat.Component name -
nameAndSymbol
public final net.minecraft.network.chat.Component nameAndSymbol -
symbol
-
fromCelsius
-
toCelsius
-
-
Method Details
-
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
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 nameNullPointerException- 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
-
format
-