Class BufferIntIteratorFlyweight

java.lang.Object
org.roaringbitmap.buffer.BufferIntIteratorFlyweight
All Implemented Interfaces:
Cloneable, IntIterator, PeekableIntIterator

public class BufferIntIteratorFlyweight extends Object implements PeekableIntIterator
Fast iterator minimizing the stress on the garbage collector. You can create one reusable instance of this class and then wrap(ImmutableRoaringBitmap) For better performance, consider the ImmutableRoaringBitmap.forEach(org.roaringbitmap.IntConsumer) method.