public class Os
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
_AIX |
private static java.lang.String |
_LINUX |
private static java.lang.String |
_SUNOS |
private static java.util.HashMap |
_table_ |
private java.lang.String |
_value_ |
private static java.lang.String |
_WINDOWS |
static Os |
AIX |
static java.lang.String |
err |
static Os |
LINUX |
static Os |
SUNOS |
static Os |
WINDOWS |
Modifier | Constructor and Description |
---|---|
protected |
Os(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares if a given Os object is equal to this.
|
static Os |
fromString(java.lang.String value)
Creates a new Os object given an os string.
|
static Os |
fromValue(java.lang.String value)
Creates a new Os object given an os string.
|
java.lang.String |
getValue()
Returns the value of the operating system as string.
|
int |
hashCode() |
java.lang.String |
toString()
Returns the string value of the operating system.
|
private java.lang.String _value_
private static java.util.HashMap _table_
private static final java.lang.String _LINUX
private static final java.lang.String _SUNOS
private static final java.lang.String _AIX
private static final java.lang.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 java.lang.String err
public java.lang.String getValue()
public static Os fromValue(java.lang.String value) throws java.lang.IllegalStateException
value
- Stringjava.lang.IllegalStateException
- Throws Exception if the operating system is not defined in this class.public static Os fromString(java.lang.String value) throws java.lang.IllegalStateException
value
- Stringjava.lang.IllegalStateException
- Throws Exception if the operating system is not defined in this class.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Objectpublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object