|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
public abstract class ItemType
Abastract Type of the item.
Note: Items of the same type might have different names in UT engine.
Always use equals(Object)
to safely compare two ItemTypes.
Use getCategory()
to obtain basic categorization of items.
Use getGroup()
to obtain detailed group info of items.
Comparable
according to getName()
.
Nested Class Summary | |
---|---|
static class |
ItemType.Category
|
static interface |
ItemType.Group
|
Field Summary | |
---|---|
static cz.cuni.amis.utils.maps.HashMapSet<ItemType.Category,ItemType> |
CATEGORIES
Contains item types that belongs to their categories. |
Constructor Summary | |
---|---|
ItemType()
|
Method Summary | |
---|---|
abstract boolean |
equals(Object obj)
Indicates whether some other ItemType is "equal to" this one. |
abstract ItemType.Category |
getCategory()
Retrieves category of the item type. |
abstract ItemType.Group |
getGroup()
Retrieves group of the item type. |
abstract String |
getName()
|
abstract int |
hashCode()
Returns a hash code value for the object. |
abstract String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
public static final cz.cuni.amis.utils.maps.HashMapSet<ItemType.Category,ItemType> CATEGORIES
Constructor Detail |
---|
public ItemType()
Method Detail |
---|
public abstract String toString()
toString
in class Object
public abstract ItemType.Category getCategory()
public abstract ItemType.Group getGroup()
public abstract boolean equals(Object obj)
equals
in class Object
obj
- Object to be compared with.
public abstract int hashCode()
hashCode
in class Object
public abstract String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |