com.nullprogram.guide
Enum Arch

java.lang.Object
  extended by java.lang.Enum<Arch>
      extended by com.nullprogram.guide.Arch
All Implemented Interfaces:
Serializable, Comparable<Arch>

public enum Arch
extends Enum<Arch>

Enumeration of pre-defined architectures.


Enum Constant Summary
LINUX_32
          32-bit Linux.
LINUX_64
          64-bit Linux.
MAC_32
          32-bit Mac OS X.
MAC_64
          64-bit Mac OS X.
UNKNOWN
          Unknown architecture.
WINDOWS_32
          32-bit Microsoft Windows.
WINDOWS_64
          64-bit Microsoft Windows.
 
Method Summary
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
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LINUX_32

public static final Arch LINUX_32
32-bit Linux.


LINUX_64

public static final Arch LINUX_64
64-bit Linux.


WINDOWS_32

public static final Arch WINDOWS_32
32-bit Microsoft Windows.


WINDOWS_64

public static final Arch WINDOWS_64
64-bit Microsoft Windows.


MAC_32

public static final Arch MAC_32
32-bit Mac OS X.


MAC_64

public static final Arch MAC_64
64-bit Mac OS X.


UNKNOWN

public static final Arch UNKNOWN
Unknown architecture.

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