net.jetrix.config
Enum Block

java.lang.Object
  extended by java.lang.Enum<Block>
      extended by net.jetrix.config.Block
All Implemented Interfaces:
Serializable, Comparable<Block>

public enum Block
extends Enum<Block>

Block enumeration.

Since:
0.2
Version:
$Revision: 545 $, $Date: 2005-01-05 18:16:04 +0100 (mer., 05 janv. 2005) $
Author:
Emmanuel Bourg

Enum Constant Summary
HALFCROSS
           
LEFTL
           
LEFTZ
           
LINE
           
RIGHTL
           
RIGHTZ
           
SQUARE
           
 
Method Summary
 String getCode()
           
 String getName(Locale locale)
           
 int getValue()
           
static Block valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Block[] 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

LINE

public static final Block LINE

SQUARE

public static final Block SQUARE

LEFTL

public static final Block LEFTL

RIGHTL

public static final Block RIGHTL

LEFTZ

public static final Block LEFTZ

RIGHTZ

public static final Block RIGHTZ

HALFCROSS

public static final Block HALFCROSS
Method Detail

values

public static Block[] 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 (Block c : Block.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Block 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

getValue

public int getValue()

getCode

public String getCode()

getName

public String getName(Locale locale)


Copyright © 2001-2008 Emmanuel Bourg. All Rights Reserved.