| Modifier and Type | Method and Description |
|---|---|
static Arch |
getNative()
Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x64.
|
static Arch |
getRunning()
Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x86.
|
static java.lang.UnsupportedOperationException |
unsupportedException(Arch arch)
Returns an UnsupportedOperationException for the given arch.
|
static Arch |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Arch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
<T> T |
x86x64(T val86,
T val64)
Returns the appropriate value depending on the arch.
|
public static Arch[] values()
for (Arch c : Arch.values()) System.out.println(c);
public static Arch valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic <T> T x86x64(T val86,
T val64)
public static Arch getNative()
public static Arch getRunning()
public static java.lang.UnsupportedOperationException unsupportedException(Arch arch)