| Constructor and Description |
|---|
FunctionalIterable(Iterable<T> delegate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> FunctionalIterable<T> |
create(Iterable<T> delegate) |
FunctionalIterable<T> |
drop(int numToDrop) |
FunctionalIterable<T> |
filter(com.google.common.base.Predicate<T> pred) |
Iterator<T> |
iterator() |
<RetType> FunctionalIterable<RetType> |
keep(com.google.common.base.Function<T,RetType> fn) |
FunctionalIterable<T> |
limit(int limit) |
<RetType> FunctionalIterable<RetType> |
transform(com.google.common.base.Function<T,RetType> fn) |
<RetType> FunctionalIterable<RetType> |
transformCat(com.google.common.base.Function<T,Iterable<RetType>> fn) |
<InType1,InType2,RetType> |
trinaryTransform(Iterable<InType1> iterable1,
Iterable<InType2> iterable2,
TrinaryFn<T,InType1,InType2,RetType> trinaryFn) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static <T> FunctionalIterable<T> create(Iterable<T> delegate)
public <RetType> FunctionalIterable<RetType> transform(com.google.common.base.Function<T,RetType> fn)
public <RetType> FunctionalIterable<RetType> transformCat(com.google.common.base.Function<T,Iterable<RetType>> fn)
public <RetType> FunctionalIterable<RetType> keep(com.google.common.base.Function<T,RetType> fn)
public FunctionalIterable<T> filter(com.google.common.base.Predicate<T> pred)
public FunctionalIterable<T> drop(int numToDrop)
public FunctionalIterable<T> limit(int limit)
public <InType1,InType2,RetType> FunctionalIterable<RetType> trinaryTransform(Iterable<InType1> iterable1, Iterable<InType2> iterable2, TrinaryFn<T,InType1,InType2,RetType> trinaryFn)
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.