Package net.nullved.pmweatherapi.util
Enum Class StormType
- All Implemented Interfaces:
Serializable,Comparable<StormType>,Constable
Deprecated, for removal: This API element is subject to removal in a future version.
An enum holding different storm types
- Since:
- 0.15.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StormTypedetermineStormType(dev.protomanly.pmweather.weather.Storm storm) Deprecated, for removal: This API element is subject to removal in a future version.intidx()Deprecated, for removal: This API element is subject to removal in a future version.Gets the index of theStormTypebooleanmatches(dev.protomanly.pmweather.weather.Storm storm) Deprecated, for removal: This API element is subject to removal in a future version.Determines if theStormmeets thisStormType's specification.intstage()Deprecated, for removal: This API element is subject to removal in a future version.Gets the minimum stage of theStormTypestatic StormTypeDeprecated, for removal: This API element is subject to removal in a future version.Returns the enum constant of this class with the specified name.static StormType[]values()Deprecated, for removal: This API element is subject to removal in a future version.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUPERCELL
Deprecated, for removal: This API element is subject to removal in a future version. -
TORNADO
Deprecated, for removal: This API element is subject to removal in a future version. -
SQUALL
Deprecated, for removal: This API element is subject to removal in a future version. -
CYCLONE
Deprecated, for removal: This API element is subject to removal in a future version. -
FIRE_WHIRL
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Field Details
-
idx
public final int idxDeprecated, for removal: This API element is subject to removal in a future version. -
stage
public final int stageDeprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
values
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
-
idx
public int idx()Deprecated, for removal: This API element is subject to removal in a future version.Gets the index of theStormType- Returns:
- The
StormTypeindex - Since:
- 0.15.0.0
-
stage
public int stage()Deprecated, for removal: This API element is subject to removal in a future version.Gets the minimum stage of theStormType- Returns:
- The minimum stage of the
StormType - Since:
- 0.15.0.0
-
matches
public boolean matches(dev.protomanly.pmweather.weather.Storm storm) Deprecated, for removal: This API element is subject to removal in a future version.Determines if theStormmeets thisStormType's specification. If thisStormTypedefines a `stage` (such asTORNADO), theStormmust be equal to or above that stage- Parameters:
storm- TheStormto check- Returns:
trueif thisStormmeets theStormTypespecification- Since:
- 0.15.0.0
-
determineStormType
Deprecated, for removal: This API element is subject to removal in a future version.
-
StormTypeinstead as of 0.16.0