Enum AudioCmd
- java.lang.Object
-
- java.lang.Enum<AudioCmd>
-
- berlin.yuna.tinkerforgesensor.model.AudioCmd
-
- All Implemented Interfaces:
Serializable,Comparable<AudioCmd>
public enum AudioCmd extends Enum<AudioCmd>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AudioCmdvalueOf(String name)Returns the enum constant of this type with the specified name.static AudioCmd[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final AudioCmd UNKNOWN
-
PLAY
public static final AudioCmd PLAY
-
REPLAY
public static final AudioCmd REPLAY
-
PAUSE
public static final AudioCmd PAUSE
-
STOP
public static final AudioCmd STOP
-
MUTE
public static final AudioCmd MUTE
-
UNMUTE
public static final AudioCmd UNMUTE
-
-
Method Detail
-
values
public static AudioCmd[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AudioCmd c : AudioCmd.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AudioCmd valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-