root / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / feature / FeatureSet.java @ 23875
History | View | Annotate | Download (1.42 KB)
1 |
package org.gvsig.fmap.data.feature; |
---|---|
2 |
|
3 |
import java.util.Iterator; |
4 |
import java.util.List; |
5 |
|
6 |
import org.gvsig.fmap.data.DataSet; |
7 |
import org.gvsig.fmap.data.exceptions.DataException; |
8 |
|
9 |
public interface FeatureSet extends DataSet { |
10 |
|
11 |
public FeatureType getDefaultFeatureType();
|
12 |
public List getFeatureTypes(); |
13 |
public long getSize() throws DataException; |
14 |
|
15 |
/**
|
16 |
* Returns an iterator over the elements in this collection, in the order
|
17 |
* (if any) defined when the collection was obtained.
|
18 |
*
|
19 |
* The iterator starts at the specified position in this collection. The
|
20 |
* specified index indicates the first element that would be returned by an
|
21 |
* initial call to the <tt>next</tt> method. An initial call to the
|
22 |
* <tt>previous</tt> method would return the element with the specified
|
23 |
* index minus one.
|
24 |
*
|
25 |
* @param index
|
26 |
* index of first element to be returned from the iterator (by a
|
27 |
* call to the <tt>next</tt> method).
|
28 |
* @return an iterator of the elements in this collection (in proper
|
29 |
* sequence), starting at the specified position in the collection.
|
30 |
* @throws IndexOutOfBoundsException
|
31 |
* if the index is out of range (index < 0 || index >
|
32 |
* size()).
|
33 |
*/
|
34 |
Iterator iterator(long index); |
35 |
|
36 |
Iterator iterator();
|
37 |
|
38 |
boolean isEmpty() throws DataException; |
39 |
public Iterator fastIterator(); |
40 |
public Iterator fastIterator(long index); |
41 |
} |