|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.feature.collection.AbstractResourceCollection
org.geotools.feature.collection.AbstractResourceList
org.geotools.feature.collection.SubResourceList
Simple SubList based on from, to index.
| Field Summary |
| Fields inherited from class org.geotools.feature.collection.AbstractResourceList |
modCount |
| Fields inherited from class org.geotools.feature.collection.AbstractResourceCollection |
open |
| Constructor Summary | |
SubResourceList(ResourceList collection,
int from,
int to)
|
|
| Method Summary | |
void |
clear()
Removes all of the elements from this collection (optional operation). |
protected void |
closeIterator(java.util.Iterator close)
Please override to cleanup after your own iterators, and any used resources. |
java.lang.Object |
get(int index)
item at the specified index. |
protected java.util.Iterator |
openIterator()
Returns a quick iterator that uses get and size methods. |
java.util.ListIterator |
openIterator(int index)
|
int |
size()
Returns the number of elements in this collection. |
| Methods inherited from class org.geotools.feature.collection.AbstractResourceList |
add, add, addAll, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class org.geotools.feature.collection.AbstractResourceCollection |
addAll, close, contains, containsAll, isEmpty, iterator, purge, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.geotools.data.collection.ResourceCollection |
close, iterator, purge |
| Methods inherited from interface java.util.Collection |
add, addAll, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface java.util.List |
add, add, addAll, addAll, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray |
| Constructor Detail |
public SubResourceList(ResourceList collection,
int from,
int to)
| Method Detail |
public java.lang.Object get(int index)
AbstractResourceList
get in interface java.util.Listget in class AbstractResourceListindex - index of item
public int size()
AbstractResourceCollection
size in interface java.util.Collectionsize in class AbstractResourceCollectionprotected java.util.Iterator openIterator()
AbstractResourceListAs with all resource collections it is assumed that the iterator will be closed after use.
openIterator in class AbstractResourceListAbstractResourceList.modCountpublic java.util.ListIterator openIterator(int index)
openIterator in class AbstractResourceListprotected void closeIterator(java.util.Iterator close)
AbstractResourceCollectionAs an example if the iterator was working off a File then the inputstream should be closed.
Subclass must call super.close( close ) to allow the list of open iterators to be adjusted.
closeIterator in class AbstractResourceListpublic void clear()
AbstractResourceListThis implementation calls removeRange(0, size()).
Note that this implementation throws an UnsupportedOperationException unless remove(int index) or removeRange(int fromIndex, int toIndex) is overridden.
clear in interface java.util.Collectionclear in class AbstractResourceList
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||