Package it.unimi.dsi.fastutil.bytes
Class ByteBigListIterators
- java.lang.Object
-
- it.unimi.dsi.fastutil.bytes.ByteBigListIterators
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classByteBigListIterators.BigListIteratorListIteratorA class exposing a list iterator as a big-list iterator..static classByteBigListIterators.EmptyBigListIteratorA class returning no elements and a type-specific big list iterator interface.static classByteBigListIterators.UnmodifiableBigListIteratorAn unmodifiable wrapper class for big list iterators.
-
Field Summary
Fields Modifier and Type Field Description static ByteBigListIterators.EmptyBigListIteratorEMPTY_BIG_LIST_ITERATORAn empty iterator (immutable).
-
Method Summary
Modifier and Type Method Description static ByteBigListIteratorasBigListIterator(ByteListIterator i)Returns a big-list iterator backed by the specified list iterator.static ByteBigListIteratorsingleton(byte element)Returns an iterator that iterates just over the given element.static ByteBigListIteratorunmodifiable(ByteBigListIterator i)Returns an unmodifiable list iterator backed by the specified list iterator.
-
-
-
Field Detail
-
EMPTY_BIG_LIST_ITERATOR
public static final ByteBigListIterators.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 ByteBigListIterator singleton(byte 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 ByteBigListIterator unmodifiable(ByteBigListIterator 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 ByteBigListIterator asBigListIterator(ByteListIterator 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.
-
-