public static enum ColorfulSnack.SnackBuilder.Duration extends java.lang.Enum<ColorfulSnack.SnackBuilder.Duration>
| Modifier and Type | Method and Description |
|---|---|
static ColorfulSnack.SnackBuilder.Duration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorfulSnack.SnackBuilder.Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorfulSnack.SnackBuilder.Duration SHORT
public static final ColorfulSnack.SnackBuilder.Duration LONG
public static ColorfulSnack.SnackBuilder.Duration[] values()
for (ColorfulSnack.SnackBuilder.Duration c : ColorfulSnack.SnackBuilder.Duration.values()) System.out.println(c);
public static ColorfulSnack.SnackBuilder.Duration valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null