|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vizzini.util.AbstractCollection org.vizzini.util.AbstractMap
public abstract class AbstractMap
Provides base functionality for maps in the game framework.
Constructor Summary | |
---|---|
AbstractMap()
|
Method Summary | |
---|---|
boolean |
add(Object object)
Add the given object. |
void |
clear()
Removes all of the objects from this collection. |
boolean |
contains(Object object)
Returns true if this collection contains the given object. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
protected abstract Map |
getData()
Return the data collection. |
protected abstract Object |
getKey(Object object)
Return the key for the given object. |
int |
hashCode()
Returns a hash code value for the object. |
boolean |
isEmpty()
Return true if this is empty. |
Iterator |
iterator()
Return an iterator over the object collection. |
boolean |
remove(Object object)
Removes a single instance of the given object from this collection, if it is present. |
int |
size()
Return the size of this collection. |
String |
toString()
Return a string representation of this object. |
Methods inherited from class org.vizzini.util.AbstractCollection |
---|
addAll, containsAll, getType, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractMap()
Method Detail |
---|
public boolean isEmpty()
public boolean add(Object object)
public void clear()
public boolean contains(Object object)
public boolean equals(Object object)
equals
in interface Collection
equals
in class Object
object
- The object to compare.public int hashCode()
hashCode
in interface Collection
hashCode
in class Object
public Iterator iterator()
public boolean remove(Object object)
public int size()
public String toString()
toString
in interface ICollection
toString
in class AbstractCollection
protected abstract Map getData()
protected abstract Object getKey(Object object)
|
||||||||||
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 |