com.twelvemonkeys.lang
Enum Platform.Architecture
java.lang.Object
java.lang.Enum<Platform.Architecture>
com.twelvemonkeys.lang.Platform.Architecture
- All Implemented Interfaces:
- Serializable, Comparable<Platform.Architecture>
- Enclosing class:
- Platform
public static enum Platform.Architecture
- extends Enum<Platform.Architecture>
Enumeration of common System Architectures.
For unknown architectures, toString() will return
the the same value as System.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
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
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(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:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toString
public String toString()
- Overrides:
toString in class Enum<Platform.Architecture>
Copyright © 2015. All Rights Reserved.