|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.syndication.common.Enum
Base class for enumerations (to bad is too early for Java 1.5).
Enum objects are inmutable.
Constructor Summary | |
protected |
Enum(java.lang.String name)
Creates an Enum object with the given name. |
Method Summary | |
java.lang.Object |
clone()
Clones the Enum. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other Enum is "equal to" this one as defined by the Object equals() method. |
int |
hashCode()
Returns a hashcode value for the Enum. |
java.lang.String |
toString()
Returns the String representation of the Enum. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Enum(java.lang.String name)
name
- of the Enum.Method Detail |
public java.lang.String toString()
public java.lang.Object clone()
public boolean equals(java.lang.Object obj)
obj
- the object to compare with.
public int hashCode()
It follows the contract defined by the Object hashCode() method.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |