Package com.twelvemonkeys.lang
Enum Platform.Architecture
- java.lang.Object
-
- java.lang.Enum<Platform.Architecture>
-
- com.twelvemonkeys.lang.Platform.Architecture
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Platform.Architecture>
- Enclosing class:
- Platform
public static enum Platform.Architecture extends java.lang.Enum<Platform.Architecture>
Enumeration of common SystemArchitecture
s.For
unknown architectures
,toString()
will return the the same value asSystem.getProperty("os.arch")
.- Version:
- $Id: //depot/branches/personal/haraldk/twelvemonkeys/release-2/twelvemonkeys-core/src/main/java/com/twelvemonkeys/lang/Platform.java#1 $
- Author:
- Harald Kuhr
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static Platform.Architecture
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Platform.Architecture[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
X86
public static final Platform.Architecture X86
-
I386
public static final Platform.Architecture I386
-
I686
public static final Platform.Architecture I686
-
PPC
public static final Platform.Architecture PPC
-
SPARC
public static final Platform.Architecture SPARC
-
Unknown
public static final Platform.Architecture Unknown
-
-
Method Detail
-
values
public static Platform.Architecture[] 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 (Platform.Architecture c : Platform.Architecture.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Platform.Architecture 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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<Platform.Architecture>
-
-