Package com.complexible.common.collect
Class LongIterators
java.lang.Object
com.complexible.common.collect.LongIterators
- Since:
- 3.0
- Author:
- Evren Sirin, Michael Grove
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LongIteratorconcat(LongIterator theFirst, LongIterator theSecond) static SkippingLongIteratorstatic SkippingLongIteratorfiltered(SkippingLongIterator base, LongPredicate predicate) static SkippingLongIteratorforArray(long... theArray) static SkippingLongIteratorforArray(long[] theArray, int theStart, int theEnd) static SkippingLongIteratorforRange(long theInitialValue, long theFinalValue) static <T> SkippingLongIteratorforSkippingIterator(SkippingIterator<T> theIterator, ToLongFunction<T> theObjectToLong, LongFunction<T> theLongToObject) static <T> CloseableLongIteratorfromIterator(CloseableIterator<T> theIter, ToLongFunction<T> theFunc) static ResettableLongIteratorsingleton(long theValue) static longsize(LongIterator theIter) static <T> CloseableIterator<T> toIterator(CloseableLongIterator theIter, LongFunction<T> theFunc) toList(LongIterator theIter) static CloseableLongIteratoruncloseable(CloseableLongIterator iterator)
-
Constructor Details
-
LongIterators
public LongIterators()
-
-
Method Details
-
concat
-
emptyIterator
-
singleton
-
forArray
-
forArray
-
forRange
-
forSkippingIterator
public static <T> SkippingLongIterator forSkippingIterator(SkippingIterator<T> theIterator, ToLongFunction<T> theObjectToLong, LongFunction<T> theLongToObject) -
toIterator
public static <T> CloseableIterator<T> toIterator(CloseableLongIterator theIter, LongFunction<T> theFunc) -
fromIterator
public static <T> CloseableLongIterator fromIterator(CloseableIterator<T> theIter, ToLongFunction<T> theFunc) -
size
-
toList
-
uncloseable
-
filtered
-