org.jivesoftware.util
Class Enum
java.lang.Object
org.jivesoftware.util.Enum
- Direct Known Subclasses:
- IntEnum
public class Enum
- extends Object
A type safe enumeration object. Used for indicating distinct states
in a generic manner. Most child classes should extend Enum and
create static instances.
- Author:
- Iain Shigeoka
Enum
protected Enum(String name)
getName
public String getName()
- Returns the name of the enum.
- Returns:
- the name of the enum.
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2008 Jive Software.