Package org.apache.hadoop.hdfs.util
Class CyclicIteration<K,V>
java.lang.Object
org.apache.hadoop.hdfs.util.CyclicIteration<K,V>
@Private
@Unstable
public class CyclicIteration<K,V>
extends Object
implements Iterable<Map.Entry<K,V>>
Provide an cyclic
Iterator for a NavigableMap.
The Iterator navigates the entries of the map
according to the map's ordering.
If the Iterator hits the last entry of the map,
it will then continue from the first entry.-
Constructor Summary
ConstructorsConstructorDescriptionCyclicIteration(NavigableMap<K, V> navigablemap, K startingkey) Construct anIterableobject, so that anIteratorcan be created for iterating the givenNavigableMap. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator