ccs.audio
Enum TrackChange

java.lang.Object
  extended by java.lang.Enum<TrackChange>
      extended by ccs.audio.TrackChange
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TrackChange>

public enum TrackChange
extends java.lang.Enum<TrackChange>

The track-change orders which may be given to a playlist.


Enum Constant Summary
FIRST
          The playlist should move to the first track in its list.
LAST
          The playlist should move to the last track in its list.
LOOP
          The playlist should keep the same track.
NEXT
          The playlist should advance to the next track in its list.
PREV
          The playlist should move to the previous track in its list.
 
Method Summary
static TrackChange valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TrackChange[] 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

NEXT

public static final TrackChange NEXT
The playlist should advance to the next track in its list.


PREV

public static final TrackChange PREV
The playlist should move to the previous track in its list.


LOOP

public static final TrackChange LOOP
The playlist should keep the same track. Bit of a no-op really.


FIRST

public static final TrackChange FIRST
The playlist should move to the first track in its list.


LAST

public static final TrackChange LAST
The playlist should move to the last track in its list.

Method Detail

values

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

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

valueOf

public static TrackChange valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null