Enum HotColdTemperature
- java.lang.Object
-
- java.lang.Enum<HotColdTemperature>
-
- net.runelite.client.plugins.cluescrolls.clues.hotcold.HotColdTemperature
-
- All Implemented Interfaces:
Serializable
,Comparable<HotColdTemperature>
public enum HotColdTemperature extends Enum<HotColdTemperature>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEGINNER_INCREDIBLY_HOT
BEGINNER_VISIBLY_SHAKING
COLD
HOT
ICE_COLD
MASTER_INCREDIBLY_HOT
MASTER_VISIBLY_SHAKING
VERY_COLD
VERY_HOT
WARM
-
Field Summary
Fields Modifier and Type Field Description static Set<HotColdTemperature>
BEGINNER_HOT_COLD_TEMPERATURES
static Set<HotColdTemperature>
MASTER_HOT_COLD_TEMPERATURES
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HotColdTemperature
getFromTemperatureSet(Set<HotColdTemperature> temperatureSet, String message)
Gets the temperature from a set of temperatures corresponding to the passed string.int
getMaxDistance()
int
getMinDistance()
String
getText()
static HotColdTemperature
valueOf(String name)
Returns the enum constant of this type with the specified name.static HotColdTemperature[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ICE_COLD
public static final HotColdTemperature ICE_COLD
-
VERY_COLD
public static final HotColdTemperature VERY_COLD
-
COLD
public static final HotColdTemperature COLD
-
WARM
public static final HotColdTemperature WARM
-
HOT
public static final HotColdTemperature HOT
-
VERY_HOT
public static final HotColdTemperature VERY_HOT
-
BEGINNER_INCREDIBLY_HOT
public static final HotColdTemperature BEGINNER_INCREDIBLY_HOT
-
BEGINNER_VISIBLY_SHAKING
public static final HotColdTemperature BEGINNER_VISIBLY_SHAKING
-
MASTER_INCREDIBLY_HOT
public static final HotColdTemperature MASTER_INCREDIBLY_HOT
-
MASTER_VISIBLY_SHAKING
public static final HotColdTemperature MASTER_VISIBLY_SHAKING
-
-
Field Detail
-
BEGINNER_HOT_COLD_TEMPERATURES
public static final Set<HotColdTemperature> BEGINNER_HOT_COLD_TEMPERATURES
-
MASTER_HOT_COLD_TEMPERATURES
public static final Set<HotColdTemperature> MASTER_HOT_COLD_TEMPERATURES
-
-
Method Detail
-
values
public static HotColdTemperature[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HotColdTemperature c : HotColdTemperature.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HotColdTemperature valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromTemperatureSet
@Nullable public static HotColdTemperature getFromTemperatureSet(Set<HotColdTemperature> temperatureSet, String message)
Gets the temperature from a set of temperatures corresponding to the passed string.- Parameters:
temperatureSet
- A set of temperature values to select frommessage
- A string containing a temperature value- Returns:
- The corresponding enum from the given temperature set.
Note that in cases where two temperature values in the given set are equally likely to be the given temperature (say, two temperatures with identical text values), the behavior is undefined.
-
getText
public String getText()
-
getMinDistance
public int getMinDistance()
-
getMaxDistance
public int getMaxDistance()
-
-