public class Arch
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
_AMD64 |
private static java.lang.String |
_INTEL32 |
private static java.lang.String |
_INTEL64 |
private static java.lang.String |
_SPARCV7 |
private static java.lang.String |
_SPARCV9 |
private static java.util.HashMap |
_table_ |
private java.lang.String |
_value_ |
static Arch |
AMD64 |
static java.lang.String |
err |
static Arch |
INTEL32 |
static Arch |
INTEL64 |
static Arch |
SPARCV7 |
static Arch |
SPARCV9 |
Modifier | Constructor and Description |
---|---|
protected |
Arch(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares if a given Arch object is equal to this.
|
static Arch |
fromString(java.lang.String value)
Creates a new Arch object given a arch string.
|
static Arch |
fromValue(java.lang.String value)
Creates a new Arch Object givan a arch string.
|
java.lang.String |
getValue()
Returns the value of the architecture as string.
|
int |
hashCode() |
java.lang.String |
toString()
Returns the string value of the architecture.
|
private java.lang.String _value_
private static java.util.HashMap _table_
private static final java.lang.String _INTEL32
private static final java.lang.String _INTEL64
private static final java.lang.String _SPARCV7
private static final java.lang.String _SPARCV9
private static final java.lang.String _AMD64
public static final Arch INTEL32
public static final Arch INTEL64
public static final Arch SPARCV7
public static final Arch SPARCV9
public static final Arch AMD64
public static final java.lang.String err
public java.lang.String getValue()
public static Arch fromValue(java.lang.String value) throws java.lang.IllegalStateException
value
- Stringjava.lang.IllegalStateException
- Throws Exception if the architecure is not defined in this class.public static Arch fromString(java.lang.String value) throws java.lang.IllegalStateException
value
- Stringjava.lang.IllegalStateException
- Throws Exception if the architecure 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