org.globus.cog.util
Class Enumerated

java.lang.Object
  extended by org.globus.cog.util.Enumerated

public abstract class Enumerated
extends Object


Constructor Summary
protected Enumerated(String literal, int value)
           
 
Method Summary
 boolean equals(Object other)
           
 int getValue()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Enumerated

protected Enumerated(String literal,
                     int value)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getValue

public final int getValue()