public class Os extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private static String |
_AIX |
private static String |
_LINUX |
private static String |
_SUNOS |
private static HashMap |
_table_ |
private String |
_value_ |
private static String |
_WINDOWS |
static Os |
AIX |
static String |
err |
static Os |
LINUX |
static Os |
SUNOS |
static Os |
WINDOWS |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares if a given Os object is equal to this.
|
static Os |
fromString(String value)
Creates a new Os object given an os string.
|
static Os |
fromValue(String value)
Creates a new Os object given an os string.
|
String |
getValue()
Returns the value of the operating system as string.
|
int |
hashCode() |
String |
toString()
Returns the string value of the operating system.
|
private String _value_
private static HashMap _table_
private static final String _LINUX
private static final String _SUNOS
private static final String _AIX
private static final String _WINDOWS
public static final Os LINUX
public static final Os SUNOS
public static final Os AIX
public static final Os WINDOWS
public static final String err
protected Os(String value)
public String getValue()
public static Os fromValue(String value) throws IllegalStateException
value
- StringIllegalStateException
- Throws Exception if the operating system is not defined in this class.public static Os fromString(String value) throws IllegalStateException
value
- StringIllegalStateException
- Throws Exception if the operating system is not defined in this class.public boolean equals(Object obj)
Copyright © 2011 The University of Southern California. All Rights Reserved.