org.otfeed.protocol
Enum OSEnum

java.lang.Object
  extended by java.lang.Enum<OSEnum>
      extended by org.otfeed.protocol.OSEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OSEnum>

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

Enumerates well-known types of operating system.

Where the Mac is?


Enum Constant Summary
LINUX
           
UNKNOWN
           
WIN2000
           
WIN95
           
WIN98
           
WIN98SE
           
WINME
           
WINNT
           
WINXP
           
 
Field Summary
 int code
           
 
Method Summary
static OSEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static OSEnum[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final OSEnum UNKNOWN

WIN95

public static final OSEnum WIN95

WIN98

public static final OSEnum WIN98

WIN98SE

public static final OSEnum WIN98SE

WINME

public static final OSEnum WINME

WINNT

public static final OSEnum WINNT

WIN2000

public static final OSEnum WIN2000

WINXP

public static final OSEnum WINXP

LINUX

public static final OSEnum LINUX
Field Detail

code

public final int code
Method Detail

values

public static final OSEnum[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OSEnum c : OSEnum.values())
        System.out.println(c);

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

valueOf

public static OSEnum 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


Copyright © 2007 Mike Kroutikov. All Rights Reserved.