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

org.roaringbitmap.CharIterator 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;

/**
 * Iterator over short values.
 */
public interface CharIterator extends Cloneable {
  /**
   * Creates a copy of the iterator.
   * 
   * @return a clone of the current iterator
   */
  CharIterator clone();

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


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

  /**
   * @return next short value as int value (using the least significant 16 bits)
   */
  int nextAsInt();

  /**
   * If possible, remove the current value
   */
  void remove();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy