Package org.openstreetmap.josm.data.osm
Class TagMap.TagEntryIterator
- java.lang.Object
-
- org.openstreetmap.josm.data.osm.TagMap.TagEntryIterator
-
- Enclosing class:
- TagMap
private static class TagMap.TagEntryIterator extends Object implements Iterator<Map.Entry<String,String>>
An iterator that iterates over the tags in this map. The iterator always represents the state of the map when it was created. Further changes to the map won't change the tags that we iterate over but they also won't raise any exceptions.
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentIndex
Current tag index.private String[]
tags
The current state of the tags we iterate over.
-
Constructor Summary
Constructors Constructor Description TagEntryIterator(String... tags)
Create a newTagMap.TagEntryIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Map.Entry<String,String>
next()
void
remove()
-
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
-
currentIndex
private int currentIndex
Current tag index. Always a multiple of 2.
-
-
Constructor Detail
-
TagEntryIterator
TagEntryIterator(String... tags)
Create a newTagMap.TagEntryIterator
- Parameters:
tags
- The tags array. It is never changed but should also not be changed by you.
-
-