Enum Class Arch
- All Implemented Interfaces:
Serializable,Comparable<Arch>,Constable
Enum for handling different processor architectures supported by SWT.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ArchReturns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x64.static ArchReturns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x86.unsupportedException(Arch arch) Returns an UnsupportedOperationException for the given arch.static ArchReturns the enum constant of this class with the specified name.static Arch[]values()Returns an array containing the constants of this enum class, in the order they are declared.<T> Tx86x64(T val86, T val64) Returns the appropriate value depending on the arch.
-
Enum Constant Details
-
x86
-
x64
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
x86x64
public <T> T x86x64(T val86, T val64) Returns the appropriate value depending on the arch. -
getNative
Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x64. -
getRunning
Returns the Arch for the native platform: 32-bit JVM on 64-bit Windows returns Arch.x86. -
unsupportedException
Returns an UnsupportedOperationException for the given arch.
-