it.unimi.dsi.fastutil.ints
Class IntBigListIterators

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.IntBigListIterators

public class IntBigListIterators
extends Object

A class providing static methods and objects that do useful things with type-specific iterators.

See Also:
IntBigListIterators.EmptyBigListIterator

Nested Class Summary
static class IntBigListIterators.BigListIteratorListIterator
          A class exposing a list iterator as a big-list iterator..
static class IntBigListIterators.EmptyBigListIterator
          A class returning no elements and a type-specific big list iterator interface.
static class IntBigListIterators.UnmodifiableBigListIterator
          An unmodifiable wrapper class for big list iterators.
 
Field Summary
static IntBigListIterators.EmptyBigListIterator EMPTY_BIG_LIST_ITERATOR
          An empty iterator (immutable).
 
Method Summary
static IntBigListIterator asBigListIterator(IntListIterator i)
          Returns a big-list iterator backed by the specified list iterator.
static IntBigListIterator singleton(int element)
          Returns an iterator that iterates just over the given element.
static IntBigListIterator unmodifiable(IntBigListIterator i)
          Returns an unmodifiable list iterator backed by the specified list iterator.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_BIG_LIST_ITERATOR

public static final IntBigListIterators.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 Detail

singleton

public static IntBigListIterator singleton(int 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 IntBigListIterator unmodifiable(IntBigListIterator 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 IntBigListIterator asBigListIterator(IntListIterator 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.