com.sun.electric.tool
Enum Client.OS

java.lang.Object
  extended by java.lang.Enum<Client.OS>
      extended by com.sun.electric.tool.Client.OS
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Client.OS>
Enclosing class:
Client

public static enum Client.OS
extends java.lang.Enum<Client.OS>

OS is a typesafe enum class that describes the current operating system.


Enum Constant Summary
MACINTOSH
          Describes Macintosh.
UNIX
          Describes UNIX/Linux.
WINDOWS
          Describes Windows.
 
Method Summary
 java.lang.String toString()
          Returns a printable version of this OS.
static Client.OS valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Client.OS[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WINDOWS

public static final Client.OS WINDOWS
Describes Windows.


UNIX

public static final Client.OS UNIX
Describes UNIX/Linux.


MACINTOSH

public static final Client.OS MACINTOSH
Describes Macintosh.

Method Detail

values

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

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

valueOf

public static Client.OS 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

toString

public java.lang.String toString()
Returns a printable version of this OS.

Overrides:
toString in class java.lang.Enum<Client.OS>
Returns:
a printable version of this OS.