Class MapCSSRuleIndex.RuleCandidatesIterator
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRuleIndex.RuleCandidatesIterator
-
- All Implemented Interfaces:
Iterator<MapCSSRule>
,KeyValueVisitor
- Enclosing class:
- MapCSSRuleIndex
private final class MapCSSRuleIndex.RuleCandidatesIterator extends Object implements Iterator<MapCSSRule>, KeyValueVisitor
This is an iterator over all rules that are marked as possible in the bitset.
-
-
Field Summary
Fields Modifier and Type Field Description private int
next
private BitSet
ruleCandidates
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleCandidatesIterator(BitSet ruleCandidates)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
MapCSSRule
next()
void
prepare()
Call this before using the iterator.void
remove()
void
visitKeyValue(Tagged p, String key, String value)
This method gets called for every tag received.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
ruleCandidates
private final BitSet ruleCandidates
-
next
private int next
-
-
Constructor Detail
-
RuleCandidatesIterator
private RuleCandidatesIterator(BitSet ruleCandidates)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<MapCSSRule>
-
next
public MapCSSRule next()
- Specified by:
next
in interfaceIterator<MapCSSRule>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<MapCSSRule>
-
visitKeyValue
public void visitKeyValue(Tagged p, String key, String value)
Description copied from interface:KeyValueVisitor
This method gets called for every tag received.- Specified by:
visitKeyValue
in interfaceKeyValueVisitor
- Parameters:
p
- This primitivekey
- The keyvalue
- The value
-
prepare
public void prepare()
Call this before using the iterator.
-
-