fi.jyu.mit.Music
Enum MidiPlayer.NoteDuration

java.lang.Object
  extended by java.lang.Enum<MidiPlayer.NoteDuration>
      extended by fi.jyu.mit.Music.MidiPlayer.NoteDuration
All Implemented Interfaces:
Serializable, Comparable<MidiPlayer.NoteDuration>
Enclosing class:
MidiPlayer

public static enum MidiPlayer.NoteDuration
extends Enum<MidiPlayer.NoteDuration>

Nuotin kestot tahdin desimaaliosissa.


Enum Constant Summary
DOUBLE
           
EIGHTH
           
HALF
           
QUARTER
           
SIXTEENTH
           
SIXTYFOURTH
           
THIRTYSECOND
           
WHOLE
           
 
Method Summary
 double length()
           
static MidiPlayer.NoteDuration valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MidiPlayer.NoteDuration[] 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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DOUBLE

public static final MidiPlayer.NoteDuration DOUBLE

EIGHTH

public static final MidiPlayer.NoteDuration EIGHTH

HALF

public static final MidiPlayer.NoteDuration HALF

QUARTER

public static final MidiPlayer.NoteDuration QUARTER

SIXTEENTH

public static final MidiPlayer.NoteDuration SIXTEENTH

SIXTYFOURTH

public static final MidiPlayer.NoteDuration SIXTYFOURTH

THIRTYSECOND

public static final MidiPlayer.NoteDuration THIRTYSECOND

WHOLE

public static final MidiPlayer.NoteDuration WHOLE
Method Detail

values

public static MidiPlayer.NoteDuration[] 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 (MidiPlayer.NoteDuration c : MidiPlayer.NoteDuration.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static MidiPlayer.NoteDuration 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 name
NullPointerException - if the argument is null

length

public double length()