|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractList java.util.ArrayList org.geotools.util.CheckedArrayList
Acts as a typed List
while we wait for Java 5.0.
Field Summary |
Fields inherited from class java.util.AbstractList |
modCount |
Constructor Summary | |
CheckedArrayList(java.lang.Class type)
Constructs a list of the specified type. |
Method Summary | |
void |
add(int index,
java.lang.Object element)
Inserts the specified element at the specified position in this list. |
boolean |
add(java.lang.Object element)
Appends the specified element to the end of this list. |
boolean |
addAll(java.util.Collection collection)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. |
boolean |
addAll(int index,
java.util.Collection collection)
Inserts all of the elements in the specified collection into this list, starting at the specified position. |
protected void |
ensureValidType(java.lang.Object element)
Checks the type of the specified object. |
java.lang.Object |
set(int index,
java.lang.Object element)
Replaces the element at the specified position in this list with the specified element. |
Methods inherited from class java.util.ArrayList |
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, remove, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.util.Cloneable |
clone |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList |
Constructor Detail |
public CheckedArrayList(java.lang.Class type)
type
- The element type (should not be null).Method Detail |
protected void ensureValidType(java.lang.Object element) throws java.lang.IllegalArgumentException
element
- the object to check, or .
java.lang.IllegalArgumentException
- if the specified element is not of the expected type.public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
index
- index of element to replace.element
- element to be stored at the specified position.
java.lang.IndexOutOfBoundsException
- if index out of range.
java.lang.IllegalArgumentException
- if the specified element is not of the expected type.public boolean add(java.lang.Object element)
add
in interface java.util.List
element
- element to be appended to this list.
java.lang.IllegalArgumentException
- if the specified element is not of the expected type.public void add(int index, java.lang.Object element)
add
in interface java.util.List
index
- index at which the specified element is to be inserted.element
- element to be inserted.
java.lang.IndexOutOfBoundsException
- if index out of range.
java.lang.IllegalArgumentException
- if the specified element is not of the expected type.public boolean addAll(java.util.Collection collection)
addAll
in interface java.util.List
collection
- the elements to be inserted into this list.
java.lang.IllegalArgumentException
- if at least one element is not of the expected type.public boolean addAll(int index, java.util.Collection collection)
addAll
in interface java.util.List
index
- index at which to insert first element fromm the specified collection.collection
- elements to be inserted into this list.
java.lang.IllegalArgumentException
- if at least one element is not of the expected type.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |