Package com.complexible.common.collect
Class SkippingIterables
java.lang.Object
com.complexible.common.collect.SkippingIterables
Few utility functions
- Since:
- 5.3.1
- Author:
- Pavel Klinov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,R> R consumeIterator(SkippingIterable<T> theIterable, Function<Iterator<T>, R> theProcessor) static <T> voidforEach(SkippingIterable<T> theIterable, Consumer<T> theConsumer) static <T> voidforEach(SkippingIterator<T> theIterator, Consumer<T> theConsumer) static <T> longsize(SkippingIterable<T> theIterable) static <T> longsize(SkippingIterator<T> theIterator) Closes the iterator.static <T> List<T> toList(SkippingIterable<T> theIterable)
-
Constructor Details
-
SkippingIterables
public SkippingIterables()
-
-
Method Details
-
size
-
forEach
-
consumeIterator
public static <T,R> R consumeIterator(SkippingIterable<T> theIterable, Function<Iterator<T>, R> theProcessor) -
toList
-
size
Closes the iterator. -
forEach
-