Revision 42488 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.api/src/main/java/org/gvsig/fmap/dal/feature/FeatureSet.java
FeatureSet.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
package org.gvsig.fmap.dal.feature; |
25 | 25 |
|
26 |
import java.util.Iterator; |
|
26 | 27 |
import java.util.List; |
27 | 28 |
|
28 | 29 |
import org.gvsig.fmap.dal.DataSet; |
... | ... | |
59 | 60 |
* metodos o en la doc general del featureset. |
60 | 61 |
* |
61 | 62 |
*/ |
62 |
public interface FeatureSet extends DataSet, IndexedVisitable { |
|
63 |
public interface FeatureSet extends DataSet, IndexedVisitable, Iterable<Feature> {
|
|
63 | 64 |
|
64 | 65 |
/** |
65 | 66 |
* Returns the default {@link FeatureType} of this FeatureSet. |
... | ... | |
131 | 132 |
* Returns an iterator over the elements in this collection, in the order |
132 | 133 |
* (if any) defined when the collection was obtained. |
133 | 134 |
* |
134 |
* <p> |
|
135 |
* <em> |
|
136 |
* <strong>NOTE:</strong> if you use this method to get the iterator, you |
|
137 |
* must get sure the iterator is disposed (@see |
|
138 |
* {@link DisposableIterator#dispose()}) in any case, even if an error occurs |
|
139 |
* while getting the data. It is recommended to use the <code>accept</code> |
|
140 |
* methods instead, which handle everything for you. |
|
141 |
* Take into account the accept methods may use a fast iterator to |
|
142 |
* get the features. |
|
143 |
* </em> |
|
144 |
* </p> |
|
145 |
* |
|
146 | 135 |
* @see #accept(org.gvsig.tools.visitor.Visitor) |
147 | 136 |
* @see #accept(org.gvsig.tools.visitor.Visitor, long) |
148 | 137 |
* @see #fastIterator() |
... | ... | |
151 | 140 |
* @return an iterator of the elements in this collection (in proper |
152 | 141 |
* sequence). |
153 | 142 |
* |
154 |
* @throws DataException |
|
155 |
* if there is an error getting the iterator |
|
156 |
* |
|
157 |
* @deprecated use {@link #fastIterator()} instead |
|
158 | 143 |
*/ |
159 |
DisposableIterator iterator() throws DataException; |
|
144 |
@Override |
|
145 |
Iterator<Feature> iterator(); |
|
160 | 146 |
|
161 | 147 |
/** |
162 | 148 |
* Returns a fast iterator over this set. |
Also available in: Unified diff