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

uk.co.openkappa.roaringbitmap.PeekableShortIterator 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;



/**
 * Simple extension to the ShortIterator interface
 *
 */
public interface PeekableShortIterator extends ShortIterator {
  /**
   * If needed, advance as long as the next value is smaller than minval (as an unsigned
   * short)
   * 
   * @param minval threshold
   */
  public void advanceIfNeeded(short minval);

  /**
   * 
   * Look at the next value without advancing
   * 
   * @return next value
   */
  public short peekNext();
  
  /**
   * Creates a copy of the iterator.
   * 
   * @return a clone of the current iterator
   */
  @Override
  PeekableShortIterator clone();
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy