Enum Class TwoAttackPokemon
- All Implemented Interfaces:
Serializable,Comparable<TwoAttackPokemon>,Constable
Enumeration identifying Pokémon that have exactly two available attacks.
TwoAttackPokemon is used to categorize Pokémon whose move sets are limited to two
attacks. This is useful in battle logic, UI display, or validation to enforce attack-related
constraints for these specific Pokémon.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TwoAttackPokemonReturns the enum constant of this class with the specified name.static TwoAttackPokemon[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIKACHU
Pikachu has two available attacks. -
RAICHU
Raichu has two available attacks. -
IVYSAUR
Ivysaur has two available attacks. -
WARTORTLE
Wartortle has two available attacks.
-
-
Constructor Details
-
TwoAttackPokemon
private TwoAttackPokemon()
-
-
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
-