|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectchtdecoder.datastructures.AbstractCHTCodeList
An abstract implementation of the CHTCodeList interface.
| Field Summary | |
protected java.util.Vector |
vector
|
| Constructor Summary | |
AbstractCHTCodeList()
|
|
| Method Summary | |
void |
add(CHTCode code)
Adds a CHTCode to the end of this list. |
static CHTCodeList |
createList()
A factory method for creating CHTCodeList objects. |
CHTCode |
get(int index)
Gets a CHTCode from this list. |
boolean |
isEmpty()
Queries if this list is empty. |
CHTCodeIterator |
iterator()
Gets an iterator for the elements in this list. |
CHTCode |
remove(int index)
Removes a CHTCode from this list at position index. |
int |
size()
Gets the size of this list (the element count). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Vector vector
| Constructor Detail |
public AbstractCHTCodeList()
| Method Detail |
public static CHTCodeList createList()
public void add(CHTCode code)
add in interface CHTCodeListcode - the CHTCode to add.
public CHTCode remove(int index)
throws java.lang.ArrayIndexOutOfBoundsException
remove in interface CHTCodeListindex - The position in the list to remove.
java.lang.ArrayIndexOutOfBoundsException - if the index in not valid (0
< index < size())
public CHTCode get(int index)
throws java.lang.ArrayIndexOutOfBoundsException
get in interface CHTCodeListindex - The index of the CHTCode to get.
java.lang.ArrayIndexOutOfBoundsException - if the index in not valid (0
< index < size())public int size()
size in interface CHTCodeListpublic boolean isEmpty()
isEmpty in interface CHTCodeListpublic CHTCodeIterator iterator()
iterator in interface CHTCodeList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||