public enum PitcherHand extends Enum<PitcherHand>
Enum Constant and Description |
---|
Left
The associated entity is left handed
|
Right
The associated entity is right handed
|
Modifier and Type | Method and Description |
---|---|
static PitcherHand |
valueFromBasicStringDescription(String hand) |
static PitcherHand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PitcherHand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PitcherHand Left
public static final PitcherHand Right
public static PitcherHand[] values()
for (PitcherHand c : PitcherHand.values()) System.out.println(c);
public static PitcherHand 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 static PitcherHand valueFromBasicStringDescription(String hand)
Copyright © 2016–2025. All rights reserved.