csli.util
Class Enum.Color

java.lang.Object
  extended by csli.util.Enum.Color
Enclosing class:
Enum

public static class Enum.Color
extends Object

Below is a sample enumeration class. A few tips: - use "static" if your enum is an inner class (not possible for outer ones) - use Color.BLUE.val for comparisons within a switch statement - to create an enum from string (for serialization), use the utility Enum.create(class,value);

Author:
Danilo Mirkovic

Field Summary
static Enum.Color BLUE
           
static Enum.Color GREEN
           
static Enum.Color RED
           
 int val
           
 
Method Summary
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RED

public static final Enum.Color RED

BLUE

public static final Enum.Color BLUE

GREEN

public static final Enum.Color GREEN

val

public final int val
Method Detail

toString

public String toString()
Overrides:
toString in class Object