net.barkerjr.gameserver.valve
Enum ValveServer.OperatingSystem

java.lang.Object
  extended by java.lang.Enum<ValveServer.OperatingSystem>
      extended by net.barkerjr.gameserver.valve.ValveServer.OperatingSystem
All Implemented Interfaces:
Serializable, Comparable<ValveServer.OperatingSystem>
Enclosing class:
ValveServer

public static enum ValveServer.OperatingSystem
extends Enum<ValveServer.OperatingSystem>

The operating system the server is running

Since:
2009-05-02
Author:
BarkerJr

Enum Constant Summary
LINUX
          The server is running on GNU/Linux
WINDOWS
          The server is running on Windows
 
Method Summary
static ValveServer.OperatingSystem valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValveServer.OperatingSystem[] 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

LINUX

public static final ValveServer.OperatingSystem LINUX
The server is running on GNU/Linux

Since:
2009-05-02

WINDOWS

public static final ValveServer.OperatingSystem WINDOWS
The server is running on Windows

Since:
2009-05-02
Method Detail

values

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

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

valueOf

public static ValveServer.OperatingSystem 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