svn-gvsig-desktop / branches / v2_0_0_prep / libraries / libFMap_data / src / org / gvsig / fmap / data / feature / impl / featureSet / FastEditedFilteredIterator.java @ 24433
History | View | Annotate | Download (714 Bytes)
1 | 23820 | jjdelcerro | package org.gvsig.fmap.data.feature.impl.featureSet; |
---|---|---|---|
2 | |||
3 | 24433 | jjdelcerro | import org.gvsig.fmap.data.exceptions.DataEvaluatorException; |
4 | 23820 | jjdelcerro | import org.gvsig.fmap.data.exceptions.DataException; |
5 | import org.gvsig.fmap.data.feature.impl.DefaultFeature; |
||
6 | 24433 | jjdelcerro | import org.gvsig.tools.evaluator.EvaluatorException; |
7 | 23820 | jjdelcerro | |
8 | public class FastEditedFilteredIterator extends FastEditedIterator { |
||
9 | |||
10 | 23894 | jjdelcerro | public FastEditedFilteredIterator(DefaultFeatureSet featureSet, long index) |
11 | throws DataException {
|
||
12 | 23820 | jjdelcerro | super(featureSet, index);
|
13 | } |
||
14 | |||
15 | |||
16 | public boolean match(DefaultFeature feature) throws DataException { |
||
17 | 24433 | jjdelcerro | try {
|
18 | return ((Boolean) this.filter.evaluate(feature)).booleanValue(); |
||
19 | } catch (EvaluatorException e) {
|
||
20 | throw new DataEvaluatorException(e); |
||
21 | } |
||
22 | 23820 | jjdelcerro | } |
23 | } |