net.kolls.railworld
Enum Sounds.SoundSystem

java.lang.Object
  extended by java.lang.Enum<Sounds.SoundSystem>
      extended by net.kolls.railworld.Sounds.SoundSystem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Sounds.SoundSystem>
Enclosing class:
Sounds

public static enum Sounds.SoundSystem
extends java.lang.Enum<Sounds.SoundSystem>

Which sound system to use


Enum Constant Summary
APPLET
          Applet sound API
JS
          Java Sound API
NONE
          No sound (mute)
STREAM
          Stream (precision controlled) sound API
 
Method Summary
static Sounds.SoundSystem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Sounds.SoundSystem[] 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

JS

public static final Sounds.SoundSystem JS
Java Sound API


APPLET

public static final Sounds.SoundSystem APPLET
Applet sound API


STREAM

public static final Sounds.SoundSystem STREAM
Stream (precision controlled) sound API


NONE

public static final Sounds.SoundSystem NONE
No sound (mute)

Method Detail

values

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

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

valueOf

public static Sounds.SoundSystem 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