Statistics
| Revision:

root / branches / dal_time_support / libraries / libFMap_dal / src / org / gvsig / fmap / dal / feature / impl / FeatureToFeatureProviderIterator.java @ 36417

History | View | Annotate | Download (582 Bytes)

1 25847 jjdelcerro
package org.gvsig.fmap.dal.feature.impl;
2
3
import java.util.Iterator;
4
5
/**
6
 *
7
 * Envuelve un iterador de Features para que se comporte como
8
 * un iterador de FeatireDatas.
9
 *
10
 */
11 29292 jmvivo
public class FeatureToFeatureProviderIterator implements Iterator {
12 25847 jjdelcerro
        Iterator featuresIterator;
13
14 29292 jmvivo
        public FeatureToFeatureProviderIterator(Iterator it) {
15 25847 jjdelcerro
                featuresIterator=it;
16
        }
17
18
        public boolean hasNext() {
19
                return featuresIterator.hasNext();
20
        }
21
22
        public Object next() {
23
                return ((DefaultFeature)featuresIterator.next()).getData();
24
        }
25
26
        public void remove() {
27
                featuresIterator.remove();
28
        }
29
30
}