public enum ChildType extends Enum<ChildType>
Modifier and Type | Method and Description |
---|---|
static ChildType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChildType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ChildType SINGLE
public static final ChildType LIST
public static final ChildType IGNORE
public static ChildType[] values()
for (ChildType c : ChildType.values()) System.out.println(c);
public static ChildType 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 null