|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.vizzini.util.AbstractEnumeratedType
public abstract class AbstractEnumeratedType
Provides base functionality for enumerated types. Subclasses should set the
_ordinal, presumably from a static counter.
| Constructor Summary | |
|---|---|
protected |
AbstractEnumeratedType(String name)
Construct this object. |
protected |
AbstractEnumeratedType(String name,
String displayName)
Construct this object. |
| Method Summary | |
|---|---|
int |
compareTo(Object another)
Compare this object to the given object. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
String |
getDisplayName()
|
String |
getName()
Return the name of this type. |
int |
hashCode()
Return the hash code. |
int |
intValue()
Return the integer value of this type. |
protected void |
setOrdinal(int ordinal)
Set the ordinal. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractEnumeratedType(String name)
name - The name.
protected AbstractEnumeratedType(String name,
String displayName)
name - Name.displayName - Display name.| Method Detail |
|---|
public int compareTo(Object another)
compareTo in interface Comparablepublic boolean equals(Object object)
equals in interface IEnumeratedTypeequals in class Objectobject - The object to compare.public String getDisplayName()
public String getName()
getName in interface IEnumeratedTypepublic int hashCode()
hashCode in interface IEnumeratedTypehashCode in class Objectpublic int intValue()
intValue in interface IEnumeratedTypepublic String toString()
toString in interface IEnumeratedTypetoString in class Objectprotected void setOrdinal(int ordinal)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |