public static enum RelativeVolume.Channel extends java.lang.Enum<RelativeVolume.Channel>
Enum Constant and Description |
---|
BACK_CENTER
back center channel
|
BACK_LEFT
back left channel
|
BACK_RIGHT
back right channel
|
FRONT_CENTER
front center channel
|
FRONT_LEFT
front left channel
|
FRONT_RIGHT
front right channel
|
MASTER_VOLUME
master volume channel
|
OTHER
other type of channel
|
SUB_WOOFER
sub woofer channel
|
Modifier and Type | Method and Description |
---|---|
static RelativeVolume.Channel |
getChannel(int channel)
convert an integral value to its corresponding enum.
|
java.lang.String |
toString() |
static RelativeVolume.Channel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelativeVolume.Channel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelativeVolume.Channel OTHER
public static final RelativeVolume.Channel MASTER_VOLUME
public static final RelativeVolume.Channel FRONT_RIGHT
public static final RelativeVolume.Channel FRONT_LEFT
public static final RelativeVolume.Channel BACK_RIGHT
public static final RelativeVolume.Channel BACK_LEFT
public static final RelativeVolume.Channel FRONT_CENTER
public static final RelativeVolume.Channel BACK_CENTER
public static final RelativeVolume.Channel SUB_WOOFER
public static RelativeVolume.Channel[] values()
for (RelativeVolume.Channel c : RelativeVolume.Channel.values()) System.out.println(c);
public static RelativeVolume.Channel 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 nullpublic java.lang.String toString()
toString
in class java.lang.Enum<RelativeVolume.Channel>
public static RelativeVolume.Channel getChannel(int channel)
channel
- the integral value that is to be converted to a Channel enum.java.lang.IllegalArgumentException
- if there is no Channel enum whose ordinal value corresponds to the given integral value.