public enum TemperatureScale extends Enum<TemperatureScale>
Modifier and Type | Method and Description |
---|---|
double |
getAbsoluteZero() |
String |
getName() |
String |
getUnits() |
String |
getValueString(double temperature) |
String |
toString() |
static TemperatureScale |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemperatureScale[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemperatureScale CELSIUS
public static final TemperatureScale FARENHEIT
public static final TemperatureScale KELVIN
public static final TemperatureScale RANKINE
public static TemperatureScale[] values()
for (TemperatureScale c : TemperatureScale.values()) System.out.println(c);
public static TemperatureScale 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 String getValueString(double temperature)
public double getAbsoluteZero()
public String toString()
toString
in class Enum<TemperatureScale>
Copyright © 2012–2019 Pi4J. All rights reserved.