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