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

uk.co.openkappa.roaringbitmap.longlong.LongIterator Maven / Gradle / Ivy

There is a newer version: 0.1.7
Show newest version
/*
 * (c) the authors Licensed under the Apache License, Version 2.0.
 */
package org.roaringbitmap.longlong;

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

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

  /**
   * @return next long value
   */
  long next();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy