jcommon.core
Enum Arch

java.lang.Object
  extended by java.lang.Enum<Arch>
      extended by 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

Enum Constant Summary
Alpha
           
Arm
           
ArmV4I
           
IA64
           
MIPS
           
PA_RISC
           
POWER_RS
           
PPC
           
PPC64
           
Sparc
           
Unknown
           
x86
           
x86_64
           
 
Field Summary
static String NAME
           
 
Method Summary
static Arch fromName(String Name)
           
 String getPlatformPartName()
           
static Arch getSystemArch()
           
static String getSystemArchName()
           
 String[] getVariants()
           
 ArchWordSize getWordSize()
           
 boolean is128Bit()
           
 boolean is16Bit()
           
 boolean is256Bit()
           
 boolean is32Bit()
           
 boolean is64Bit()
           
 boolean is8Bit()
           
static Arch valueOf(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.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

NAME

public static final String NAME
Method Detail

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.