jcommon.core
Enum Arch
java.lang.Object
java.lang.Enum<Arch>
jcommon.core.Arch
- All Implemented Interfaces:
- Serializable, Comparable<Arch>
public enum Arch
- extends Enum<Arch>
Gathers information about operating systems and the one we're hosted on.
- Author:
- David Hoyt
Unknown
public static final Arch Unknown
x86
public static final Arch x86
x86_64
public static final Arch x86_64
IA64
public static final Arch IA64
PPC
public static final Arch PPC
PPC64
public static final Arch PPC64
Arm
public static final Arch Arm
ArmV4I
public static final Arch ArmV4I
Sparc
public static final Arch Sparc
PA_RISC
public static final Arch PA_RISC
POWER_RS
public static final Arch POWER_RS
MIPS
public static final Arch MIPS
Alpha
public static final Arch Alpha
NAME
public static final String NAME
values
public static Arch[] 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 (Arch c : Arch.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Arch 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
getSystemArchName
public static String getSystemArchName()
getSystemArch
public static Arch getSystemArch()
getVariants
public String[] getVariants()
getWordSize
public ArchWordSize getWordSize()
getPlatformPartName
public String getPlatformPartName()
is8Bit
public boolean is8Bit()
is16Bit
public boolean is16Bit()
is32Bit
public boolean is32Bit()
is64Bit
public boolean is64Bit()
is128Bit
public boolean is128Bit()
is256Bit
public boolean is256Bit()
fromName
public static Arch fromName(String Name)
Copyright © 2012-2013. All Rights Reserved.