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