Enum Class SecondEvolutionPokemon
- All Implemented Interfaces:
Serializable,Comparable<SecondEvolutionPokemon>,Constable
Enumeration of Pokémon species that represent the second stage in their evolutionary line.
Each constant corresponds to a Pokémon that evolves from its first stage counterpart and can further evolve into a third-stage Pokémon. This enum is typically used for tracking evolution progress or determining available moves and stats for mid-evolution Pokémon.
Example usage:
SecondEvolutionPokemon evo = SecondEvolutionPokemon.PIKACHU;
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCharmeleon, second evolution of Charmander.Ivysaur, second evolution of Bulbasaur.Pikachu, no previous evolution (evolves directly into third evolution: Raichu).Wartortle, second evolution of Squirtle. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SecondEvolutionPokemonReturns the enum constant of this class with the specified name.static SecondEvolutionPokemon[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PIKACHU
Pikachu, no previous evolution (evolves directly into third evolution: Raichu). -
CHARMELEON
Charmeleon, second evolution of Charmander. -
IVYSAUR
Ivysaur, second evolution of Bulbasaur. -
WORTORTLE
Wartortle, second evolution of Squirtle.
-
-
Constructor Details
-
SecondEvolutionPokemon
private SecondEvolutionPokemon()
-
-
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
-