Package it.unimi.dsi.fastutil.longs
Class LongBigListIterators
java.lang.Object
it.unimi.dsi.fastutil.longs.LongBigListIterators
A class providing static methods and objects that do useful things with type-specific iterators.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A skeletal implementation for an iterator backed by an index based data store.static class
A skeletal implementation for a list-iterator backed by an index based data store.static class
A class exposing a list iterator as a big-list iterator..static class
A class returning no elements and a type-specific big list iterator interface.static class
An unmodifiable wrapper class for big list iterators. -
Field Summary
Modifier and TypeFieldDescriptionstatic final LongBigListIterators.EmptyBigListIterator
An empty iterator (immutable). -
Method Summary
Modifier and TypeMethodDescriptionstatic LongBigListIterator
Returns a big-list iterator backed by the specified list iterator.static LongBigListIterator
singleton
(long element) Returns an iterator that iterates just over the given element.static LongBigListIterator
Returns an unmodifiable list iterator backed by the specified list iterator.
-
Field Details
-
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
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
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
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.
-