public final class LazyIterate
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
static <T> LazyIterable<T> |
adapt(java.lang.Iterable<T> iterable) |
Creates a deferred rich iterable for the specified iterable.
|
static <T> LazyIterable<RichIterable<T>> |
chunk(java.lang.Iterable<T> iterable,
int size) |
|
static <T,V> LazyIterable<V> |
collect(java.lang.Iterable<T> iterable,
Function<? super T,? extends V> function) |
Creates a deferred transforming iterable for the specified iterable.
|
static <T,V> LazyIterable<V> |
collectIf(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
Creates a deferred filtering and transforming iterable for the specified iterable.
|
static <T> LazyIterable<T> |
concatenate(java.lang.Iterable<T>... iterables) |
Combines iterables into a deferred composite iterable.
|
static <T> LazyIterable<T> |
distinct(java.lang.Iterable<T> iterable) |
Creates a deferred distinct iterable for the specified iterable.
|
static <T> LazyIterable<T> |
drop(java.lang.Iterable<T> iterable,
int count) |
Creates a deferred drop iterable for the specified iterable using the specified count as the size to drop.
|
static <T> LazyIterable<T> |
dropWhile(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Creates a deferred dropWhile iterable for the specified iterable using the specified count as the size to drop.
|
static <T> LazyIterable<T> |
empty() |
|
static <T,V> LazyIterable<V> |
flatCollect(java.lang.Iterable<T> iterable,
Function<? super T,? extends java.lang.Iterable<V>> function) |
Creates a deferred flattening iterable for the specified iterable.
|
static <T> LazyIterable<T> |
reject(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Creates a deferred negative filtering iterable for the specified iterable.
|
static <T> LazyIterable<T> |
select(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Creates a deferred filtering iterable for the specified iterable.
|
static <T> LazyIterable<T> |
selectInstancesOf(java.lang.Iterable<?> iterable,
java.lang.Class<T> clazz) |
|
static <T> LazyIterable<T> |
take(java.lang.Iterable<T> iterable,
int count) |
Creates a deferred take iterable for the specified iterable using the specified count as the limit.
|
static <T> LazyIterable<T> |
takeWhile(java.lang.Iterable<T> iterable,
Predicate<? super T> predicate) |
Creates a deferred takeWhile iterable for the specified iterable using the specified predicate.
|
static <T> LazyIterable<T> |
tap(java.lang.Iterable<T> iterable,
Procedure<? super T> procedure) |
Creates a deferred tap iterable for the specified iterable.
|
static <A,B> LazyIterable<Pair<A,B>> |
zip(java.lang.Iterable<A> as,
java.lang.Iterable<B> bs) |
|
static <T> LazyIterable<Pair<T,java.lang.Integer>> |
zipWithIndex(java.lang.Iterable<T> iterable) |
public static <T> LazyIterable<T> adapt(java.lang.Iterable<T> iterable)
public static <T> LazyIterable<T> select(java.lang.Iterable<T> iterable, Predicate<? super T> predicate)
public static <T> LazyIterable<T> reject(java.lang.Iterable<T> iterable, Predicate<? super T> predicate)
public static <T> LazyIterable<T> selectInstancesOf(java.lang.Iterable<?> iterable, java.lang.Class<T> clazz)
public static <T,V> LazyIterable<V> collect(java.lang.Iterable<T> iterable, Function<? super T,? extends V> function)
public static <T,V> LazyIterable<V> flatCollect(java.lang.Iterable<T> iterable, Function<? super T,? extends java.lang.Iterable<V>> function)
public static <T,V> LazyIterable<V> collectIf(java.lang.Iterable<T> iterable, Predicate<? super T> predicate, Function<? super T,? extends V> function)
public static <T> LazyIterable<T> take(java.lang.Iterable<T> iterable, int count)
public static <T> LazyIterable<T> drop(java.lang.Iterable<T> iterable, int count)
public static <T> LazyIterable<T> takeWhile(java.lang.Iterable<T> iterable, Predicate<? super T> predicate)
public static <T> LazyIterable<T> dropWhile(java.lang.Iterable<T> iterable, Predicate<? super T> predicate)
public static <T> LazyIterable<T> distinct(java.lang.Iterable<T> iterable)
public static <T> LazyIterable<T> concatenate(java.lang.Iterable<T>... iterables)
public static <T> LazyIterable<T> empty()
public static <A,B> LazyIterable<Pair<A,B>> zip(java.lang.Iterable<A> as, java.lang.Iterable<B> bs)
public static <T> LazyIterable<Pair<T,java.lang.Integer>> zipWithIndex(java.lang.Iterable<T> iterable)
public static <T> LazyIterable<RichIterable<T>> chunk(java.lang.Iterable<T> iterable, int size)
public static <T> LazyIterable<T> tap(java.lang.Iterable<T> iterable, Procedure<? super T> procedure)
Copyright © 2004–2018. All rights reserved.