|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractFeatureCollection
SubFeatureCollection
SubFeatureList
public class SubFeatureList
Field Summary |
---|
Fields inherited from class SubFeatureCollection |
---|
collection, ff, filter |
Fields inherited from class AbstractFeatureCollection |
---|
id, listeners, open, schema |
Constructor Summary | |
---|---|
SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list,
Filter filter)
|
|
SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list,
Filter filter,
SortBy subSort)
Create a simple SubFeatureList with the provided filter. |
|
SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list,
List order)
|
|
SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list,
SortBy sort)
|
Method Summary | |
---|---|
boolean |
add(SimpleFeature feature)
Appends element. |
protected Filter |
createFilter()
Lazy create a filter based on index |
protected List<FeatureId> |
createIndex()
Put this SubFeatureList in touch with its inner index |
SimpleFeature |
get(int position)
item at the specified index. |
SimpleFeature |
getFeatureMember(String id)
Access Feature content by feature id. |
protected List<FeatureId> |
index()
|
int |
indexOf(SimpleFeature feature)
|
int |
lastIndexOf(SimpleFeature feature)
|
Iterator<SimpleFeature> |
openIterator()
Returns a quick iterator that uses get and size methods. |
SimpleFeature |
remove(int position)
|
SimpleFeature |
removeFeatureMember(String id)
Optional Method |
FeatureCollection<SimpleFeatureType,SimpleFeature> |
subList(Filter subfilter)
Sublist of this sublist! |
Methods inherited from class SubFeatureCollection |
---|
accepts, clear, close, closeIterator, collection, features, filter, getCount, getID, isEmpty, reader, remove, size, sort, subCollection |
Methods inherited from class AbstractFeatureCollection |
---|
accepts, addAll, addAll, addListener, close, contains, containsAll, getBounds, getOpenIterators, getSchema, iterator, purge, removeAll, removeListener, retainAll, toArray, toArray |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface FeatureCollection |
---|
accepts, addAll, addAll, addListener, clear, close, close, contains, containsAll, features, getBounds, getID, getSchema, isEmpty, iterator, purge, remove, removeAll, removeListener, retainAll, size, sort, subCollection, toArray, toArray |
Constructor Detail |
---|
public SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list, Filter filter)
public SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list, SortBy sort)
public SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list, Filter filter, SortBy subSort)
filter
- public SubFeatureList(FeatureCollection<SimpleFeatureType,SimpleFeature> list, List order)
Method Detail |
---|
public SimpleFeature get(int position)
index
- index of item
IndexOutOfBoundsException
- if index is not between 0 and sizeprotected Filter createFilter()
createFilter
in class SubFeatureCollection
protected List<FeatureId> index()
protected List<FeatureId> createIndex()
public boolean add(SimpleFeature feature)
This implementation calls add(size(), o).
Note that this implementation throws an UnsupportedOperationException unless add(int, Object) is overridden.
add
in interface FeatureCollection<SimpleFeatureType,SimpleFeature>
add
in class SubFeatureCollection
item
- the Object element to be appended to this list.
UnsupportedOperationException
- if the add method is not supported by this Set.
ClassCastException
- if the class of the specified element prevents it from being
added to this set.
IllegalArgumentException
- some aspect of this element prevents it from being added to
this collection.Collection.add(Object)
public int indexOf(SimpleFeature feature)
public int lastIndexOf(SimpleFeature feature)
public FeatureCollection<SimpleFeatureType,SimpleFeature> subList(Filter subfilter)
Implementation will ensure this does not get out of hand, order is maintained and only indexed once.
subList
in class AbstractFeatureCollection
public SimpleFeature getFeatureMember(String id) throws NoSuchElementException
RandomFeatureAccess
getFeatureMember
in interface RandomFeatureAccess
NoSuchElementException
- if a Feature with the indicated id is not presentpublic SimpleFeature removeFeatureMember(String id)
RandomFeatureAccess
removeFeatureMember
in interface RandomFeatureAccess
public SimpleFeature remove(int position)
public Iterator<SimpleFeature> openIterator()
As with all resource collections it is assumed that the iterator will be closed after use.
openIterator
in class SubFeatureCollection
#modCount
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |