Package com.complexible.common.collect
Class SkippingIterables
- java.lang.Object
-
- com.complexible.common.collect.SkippingIterables
-
public class SkippingIterables extends java.lang.Object
Few utility functions- Since:
- 5.3.1
- Author:
- Pavel Klinov
-
-
Constructor Summary
Constructors Constructor Description SkippingIterables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T,R>
RconsumeIterator(SkippingIterable<T> theIterable, java.util.function.Function<java.util.Iterator<T>,R> theProcessor)
static <T> void
forEach(SkippingIterable<T> theIterable, java.util.function.Consumer<T> theConsumer)
static <T> long
size(SkippingIterable<T> theIterable)
static <T> java.util.List<T>
toList(SkippingIterable<T> theIterable)
-
-
-
Method Detail
-
size
public static <T> long size(SkippingIterable<T> theIterable)
-
forEach
public static <T> void forEach(SkippingIterable<T> theIterable, java.util.function.Consumer<T> theConsumer)
-
consumeIterator
public static <T,R> R consumeIterator(SkippingIterable<T> theIterable, java.util.function.Function<java.util.Iterator<T>,R> theProcessor)
-
toList
public static <T> java.util.List<T> toList(SkippingIterable<T> theIterable)
-
-