|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractCollection
org.vizzini.util.AbstractList
public abstract class AbstractList
Provides base functionality for lists in the game framework.
Constructor Summary | |
---|---|
AbstractList()
|
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 List |
getData()
Return the data collection. |
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 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. |
Methods inherited from class org.vizzini.util.AbstractCollection |
---|
addAll, containsAll, getType, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractList()
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()
protected abstract List getData()
|
||||||||||
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 |