Example usage for org.apache.commons.collections.primitives IntList iterator

List of usage examples for org.apache.commons.collections.primitives IntList iterator

Introduction

In this page you can find the example usage for org.apache.commons.collections.primitives IntList iterator.

Prototype

IntIterator iterator();

Source Link

Document

Returns an IntIterator iterator over all my elements, in the appropriate sequence.

Usage

From source file:solidstack.io.DiskBuffer.java

void clearBlocks(IntList blocks) {
    for (IntIterator i = blocks.iterator(); i.hasNext();) {
        int block = i.next();
        if (block < this.emptyBlockStart)
            this.emptyBlockStart = block;
        this.usedBlocks.clear(block);
    }//w  ww . ja v  a  2s.c o  m
}