public enum Architecture extends Enum<Architecture>
This class is Thread-Safe.
Enum Constant and Description |
---|
UNKNOWN
Unknown architecture.
|
X64
64 bits.
|
X86
32 bits.
|
Modifier and Type | Method and Description |
---|---|
static Architecture |
find(String arch)
Find the current architecture.
|
static Architecture |
getArchitecture()
Get java current running architecture.
|
static Architecture |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Architecture[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Architecture X86
public static final Architecture X64
public static final Architecture UNKNOWN
public static Architecture[] values()
for (Architecture c : Architecture.values()) System.out.println(c);
public static Architecture valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Architecture find(String arch)
arch
- The architecture short name (usually 32
or 86
or 64
).public static Architecture getArchitecture()
Copyright © 2017 Byron 3D Games Studio. All rights reserved.