Package com.io7m.jnoisetype.api
Enum NTSampleKind
java.lang.Object
java.lang.Enum<NTSampleKind>
com.io7m.jnoisetype.api.NTSampleKind
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NTSampleKind>,java.lang.constant.Constable
public enum NTSampleKind extends java.lang.Enum<NTSampleKind>
- See Also:
- "SoundFontⓡ Technical Specification 2.04, §7.10 The SHDR subchunk"
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>> -
Enum Constant Summary
Enum Constants Enum Constant Description SAMPLE_KIND_LEFTA left stereo sample.SAMPLE_KIND_LINKEDA linked sample.SAMPLE_KIND_MONOA mono sample.SAMPLE_KIND_NONEA nonexistent sample kind; used in terminal records.SAMPLE_KIND_RIGHTA right stereo sample.SAMPLE_KIND_ROM_LEFTA left stereo sample in a ROM.SAMPLE_KIND_ROM_LINKEDA linked sample in a ROM.SAMPLE_KIND_ROM_MONOA mono sample in a ROM.SAMPLE_KIND_ROM_RIGHTA right stereo sample in a ROM. -
Method Summary
Modifier and Type Method Description intvalue()static NTSampleKindvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NTSampleKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
SAMPLE_KIND_NONE
A nonexistent sample kind; used in terminal records. -
SAMPLE_KIND_MONO
A mono sample. -
SAMPLE_KIND_RIGHT
A right stereo sample. -
SAMPLE_KIND_LEFT
A left stereo sample. -
SAMPLE_KIND_LINKED
A linked sample. -
SAMPLE_KIND_ROM_MONO
A mono sample in a ROM. -
SAMPLE_KIND_ROM_RIGHT
A right stereo sample in a ROM. -
SAMPLE_KIND_ROM_LEFT
A left stereo sample in a ROM. -
SAMPLE_KIND_ROM_LINKED
A linked sample in a ROM.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
value
public int value()- Returns:
- The integer value of the enumeration
-