Class LazySkipIterable<T>
java.lang.Object
de.renebergelt.quiterables.iterators.LazySkipIterable<T>
- Type Parameters:
T- Type of the elements in this Iterable
- All Implemented Interfaces:
Iterable<T>
Iterable which skips a certain amount of elements or
skips as long as all elements match a predicate
- Author:
- René Bergelt
-
Constructor Summary
ConstructorsConstructorDescriptionLazySkipIterable(Iterable<T> _wrapped, int _amount)Create a new lazy skip iterable which wraps the given iterableLazySkipIterable(Iterable<T> _wrapped, Predicate<T> _skipWhileCondition)Create a new lazy skip iterable which wraps the given iterable -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LazySkipIterable
Create a new lazy skip iterable which wraps the given iterable- Parameters:
_wrapped- The wrapped iterable_amount- Number of elements to skip
-
LazySkipIterable
Create a new lazy skip iterable which wraps the given iterable- Parameters:
_wrapped- The wrapped iterable_skipWhileCondition- Condition to skip an element from the beginning
-
-
Method Details