Class LoopingResumingIterator<KEY,​VALUE>

java.lang.Object
io.confluent.csid.utils.LoopingResumingIterator<KEY,​VALUE>
All Implemented Interfaces:
Iterable<Map.Entry<KEY,​VALUE>>, Iterator<Map.Entry<KEY,​VALUE>>

public class LoopingResumingIterator<KEY,​VALUE>
extends Object
implements Iterator<Map.Entry<KEY,​VALUE>>, Iterable<Map.Entry<KEY,​VALUE>>
Loop implementations that will resume from a given key. Can be constructed and used as an iterable, or a function passed into the static version #iterateStartingFromKeyLooping.

The non functional version is useful when you want to use looping constructs such as break and continue.