Class BooleanBigListIterators

java.lang.Object
it.unimi.dsi.fastutil.booleans.BooleanBigListIterators

public final class BooleanBigListIterators extends Object
A class providing static methods and objects that do useful things with type-specific iterators.
See Also:
  • Field Details

    • EMPTY_BIG_LIST_ITERATOR

      public static final BooleanBigListIterators.EmptyBigListIterator EMPTY_BIG_LIST_ITERATOR
      An empty iterator (immutable). It is serializable and cloneable.

      The class of this objects represent an abstract empty iterator that can iterate as a type-specific (list) iterator.

  • Method Details

    • singleton

      public static BooleanBigListIterator singleton(boolean element)
      Returns an iterator that iterates just over the given element.
      Parameters:
      element - the only element to be returned by a type-specific list iterator.
      Returns:
      an iterator that iterates just over element.
    • unmodifiable

      public static BooleanBigListIterator unmodifiable(BooleanBigListIterator i)
      Returns an unmodifiable list iterator backed by the specified list iterator.
      Parameters:
      i - the list iterator to be wrapped in an unmodifiable list iterator.
      Returns:
      an unmodifiable view of the specified list iterator.
    • asBigListIterator

      public static BooleanBigListIterator asBigListIterator(BooleanListIterator i)
      Returns a big-list iterator backed by the specified list iterator.
      Parameters:
      i - the list iterator to adapted to the big-list-iterator interface.
      Returns:
      a big-list iterator backed by the specified list iterator.