public enum SimonType extends Enum<SimonType>
Modifier and Type | Method and Description |
---|---|
Class<? extends Sample> |
getSampleType() |
Class<? extends Simon> |
getType() |
static SimonType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static SimonType[] values()
for (SimonType c : SimonType.values()) System.out.println(c);
public static SimonType 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 Class<? extends Sample> getSampleType()
Copyright © 2019. All rights reserved.