java.io.Serializable
, java.lang.Comparable<MusicalInstrument.InstrumentType>
public static enum MusicalInstrument.InstrumentType extends java.lang.Enum<MusicalInstrument.InstrumentType>
Enum Constant | Description |
---|---|
CLARINETS |
|
CYMBALS |
|
DRUMS |
|
FLUTES |
|
GUITARS |
|
HARMONICAS |
|
HARPS |
|
HORNS |
|
OBOES |
|
ORGANS |
|
OTHER_INSTRUMENT_TYPE |
|
PIANOS |
|
TROMBONES |
|
TRUMPETS |
|
TUBAS |
|
VIOLINS |
|
WOODS |
|
XYLOPHONES |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String[] |
valueNames() |
|
static MusicalInstrument.InstrumentType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static MusicalInstrument.InstrumentType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MusicalInstrument.InstrumentType CLARINETS
public static final MusicalInstrument.InstrumentType CYMBALS
public static final MusicalInstrument.InstrumentType DRUMS
public static final MusicalInstrument.InstrumentType FLUTES
public static final MusicalInstrument.InstrumentType GUITARS
public static final MusicalInstrument.InstrumentType HARMONICAS
public static final MusicalInstrument.InstrumentType HARPS
public static final MusicalInstrument.InstrumentType HORNS
public static final MusicalInstrument.InstrumentType OBOES
public static final MusicalInstrument.InstrumentType ORGANS
public static final MusicalInstrument.InstrumentType PIANOS
public static final MusicalInstrument.InstrumentType TROMBONES
public static final MusicalInstrument.InstrumentType TRUMPETS
public static final MusicalInstrument.InstrumentType TUBAS
public static final MusicalInstrument.InstrumentType VIOLINS
public static final MusicalInstrument.InstrumentType WOODS
public static final MusicalInstrument.InstrumentType XYLOPHONES
public static final MusicalInstrument.InstrumentType OTHER_INSTRUMENT_TYPE
public static MusicalInstrument.InstrumentType[] values()
for (MusicalInstrument.InstrumentType c : MusicalInstrument.InstrumentType.values()) System.out.println(c);
public static MusicalInstrument.InstrumentType 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 static java.lang.String[] valueNames()