Class MapCSSRuleIndex.RuleCandidatesIterator
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSRuleIndex.RuleCandidatesIterator
-
- All Implemented Interfaces:
java.util.Iterator<MapCSSRule>
,KeyValueVisitor
- Enclosing class:
- MapCSSRuleIndex
private final class MapCSSRuleIndex.RuleCandidatesIterator extends java.lang.Object implements java.util.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 java.util.BitSet
ruleCandidates
-
Constructor Summary
Constructors Modifier Constructor Description private
RuleCandidatesIterator(java.util.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, java.lang.String key, java.lang.String value)
This method gets called for every tag received.
-
-
-
Field Detail
-
ruleCandidates
private final java.util.BitSet ruleCandidates
-
next
private int next
-
-
Constructor Detail
-
RuleCandidatesIterator
private RuleCandidatesIterator(java.util.BitSet ruleCandidates)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<MapCSSRule>
-
next
public MapCSSRule next()
- Specified by:
next
in interfacejava.util.Iterator<MapCSSRule>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<MapCSSRule>
-
visitKeyValue
public void visitKeyValue(Tagged p, java.lang.String key, java.lang.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.
-
-