All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.roaringbitmap.IntIterator Maven / Gradle / Ivy

Go to download

Roaring bitmaps are compressed bitmaps (also called bitsets) which tend to outperform conventional compressed bitmaps such as WAH or Concise.

There is a newer version: 1.3.0
Show newest version
/*
 * (c) the authors Licensed under the Apache License, Version 2.0.
 */

package org.roaringbitmap;

/**
 * A simple iterator over integer values.
 * Using an IntIterator instead of Java's Iterator<Integer>
 * avoids the overhead of the Interger class: on some tests,
 * IntIterator is nearly twice as fast as Iterator<Integer>.
 */
public interface IntIterator extends Cloneable {
  /**
   * Creates a copy of the iterator.
   * 
   * @return a clone of the current iterator
   */
  IntIterator clone();

  /**
   * @return whether there is another value
   */
  boolean hasNext();

  /**
   * @return next integer value
   */
  int next();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy