public abstract class AbstractLazyIterable<T> extends AbstractRichIterable<T> implements LazyIterable<T>
| Constructor and Description |
|---|
AbstractLazyIterable() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> MapIterable<K,V> |
aggregateBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> MapIterable<K,V> |
aggregateInPlaceBy(Function<? super T,? extends K> groupBy,
Function0<? extends V> zeroValueFactory,
Procedure2<? super V,? super T> mutatingAggregator) |
LazyIterable<T> |
asLazy() |
LazyIterable<RichIterable<T>> |
chunk(int size) |
<V> LazyIterable<V> |
collect(Function<? super T,? extends V> function) |
LazyBooleanIterable |
collectBoolean(BooleanFunction<? super T> booleanFunction) |
LazyByteIterable |
collectByte(ByteFunction<? super T> byteFunction) |
LazyCharIterable |
collectChar(CharFunction<? super T> charFunction) |
LazyDoubleIterable |
collectDouble(DoubleFunction<? super T> doubleFunction) |
LazyFloatIterable |
collectFloat(FloatFunction<? super T> floatFunction) |
<V> LazyIterable<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
LazyIntIterable |
collectInt(IntFunction<? super T> intFunction) |
LazyLongIterable |
collectLong(LongFunction<? super T> longFunction) |
LazyShortIterable |
collectShort(ShortFunction<? super T> shortFunction) |
<P,V> LazyIterable<V> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
LazyIterable<T> |
concatenate(Iterable<T> iterable) |
LazyIterable<T> |
distinct() |
LazyIterable<T> |
drop(int count) |
LazyIterable<T> |
dropWhile(Predicate<? super T> predicate) |
<V> LazyIterable<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
T |
getFirst() |
T |
getLast() |
T |
getOnly() |
<V> Multimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V> Multimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
<V> MapIterable<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
<R extends Collection<T>> |
into(R target) |
boolean |
isEmpty() |
<V extends Comparable<? super V>> |
maxByOptional(Function<? super T,? extends V> function) |
Optional<T> |
maxOptional() |
Optional<T> |
maxOptional(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minByOptional(Function<? super T,? extends V> function) |
Optional<T> |
minOptional() |
Optional<T> |
minOptional(Comparator<? super T> comparator) |
PartitionMutableList<T> |
partition(Predicate<? super T> predicate) |
<P> PartitionMutableList<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
LazyIterable<T> |
reject(Predicate<? super T> predicate) |
<P> LazyIterable<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
LazyIterable<T> |
select(Predicate<? super T> predicate) |
<S> LazyIterable<S> |
selectInstancesOf(Class<S> clazz) |
<P> LazyIterable<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
int |
size() |
<V> ObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> ObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> ObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> ObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
LazyIterable<T> |
take(int count) |
LazyIterable<T> |
takeWhile(Predicate<? super T> predicate) |
LazyIterable<T> |
tap(Procedure<? super T> procedure) |
<E> E[] |
toArray(E[] array) |
MutableStack<T> |
toStack() |
<S> LazyIterable<Pair<T,S>> |
zip(Iterable<S> that) |
LazyIterable<Pair<T,Integer>> |
zipWithIndex() |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countByEach, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, forEachWith, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitflatCollectWithallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectWith, forEach, getAny, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toBag, toBiMap, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEach, forEachWith, forEachWithIndexiterator, spliteratorpublic LazyIterable<T> asLazy()
asLazy in interface RichIterable<T>asLazy in class AbstractRichIterable<T>public <R extends Collection<T>> R into(R target)
into in interface LazyIterable<T>into in interface RichIterable<T>into in class AbstractRichIterable<T>public <E> E[] toArray(E[] array)
toArray in interface RichIterable<T>toArray in class AbstractRichIterable<T>public int size()
size in interface RichIterable<T>public boolean isEmpty()
isEmpty in interface RichIterable<T>isEmpty in class AbstractRichIterable<T>public T getFirst()
getFirst in interface LazyIterable<T>getFirst in interface RichIterable<T>public T getLast()
getLast in interface RichIterable<T>public T getOnly()
getOnly in interface RichIterable<T>public LazyIterable<T> select(Predicate<? super T> predicate)
select in interface LazyIterable<T>select in interface RichIterable<T>public <P> LazyIterable<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface LazyIterable<T>selectWith in interface RichIterable<T>public LazyIterable<T> reject(Predicate<? super T> predicate)
reject in interface LazyIterable<T>reject in interface RichIterable<T>public <P> LazyIterable<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface LazyIterable<T>rejectWith in interface RichIterable<T>public PartitionMutableList<T> partition(Predicate<? super T> predicate)
partition in interface RichIterable<T>public <P> PartitionMutableList<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface RichIterable<T>public <S> LazyIterable<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface LazyIterable<T>selectInstancesOf in interface RichIterable<T>public <V> LazyIterable<V> collect(Function<? super T,? extends V> function)
collect in interface LazyIterable<T>collect in interface RichIterable<T>public LazyBooleanIterable collectBoolean(BooleanFunction<? super T> booleanFunction)
collectBoolean in interface LazyIterable<T>collectBoolean in interface RichIterable<T>public LazyByteIterable collectByte(ByteFunction<? super T> byteFunction)
collectByte in interface LazyIterable<T>collectByte in interface RichIterable<T>public LazyCharIterable collectChar(CharFunction<? super T> charFunction)
collectChar in interface LazyIterable<T>collectChar in interface RichIterable<T>public LazyDoubleIterable collectDouble(DoubleFunction<? super T> doubleFunction)
collectDouble in interface LazyIterable<T>collectDouble in interface RichIterable<T>public LazyFloatIterable collectFloat(FloatFunction<? super T> floatFunction)
collectFloat in interface LazyIterable<T>collectFloat in interface RichIterable<T>public LazyIntIterable collectInt(IntFunction<? super T> intFunction)
collectInt in interface LazyIterable<T>collectInt in interface RichIterable<T>public LazyLongIterable collectLong(LongFunction<? super T> longFunction)
collectLong in interface LazyIterable<T>collectLong in interface RichIterable<T>public LazyShortIterable collectShort(ShortFunction<? super T> shortFunction)
collectShort in interface LazyIterable<T>collectShort in interface RichIterable<T>public <P,V> LazyIterable<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
collectWith in interface LazyIterable<T>collectWith in interface RichIterable<T>public <V> LazyIterable<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface LazyIterable<T>flatCollect in interface RichIterable<T>public LazyIterable<T> concatenate(Iterable<T> iterable)
concatenate in interface LazyIterable<T>public <V> LazyIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface LazyIterable<T>collectIf in interface RichIterable<T>public LazyIterable<T> take(int count)
take in interface LazyIterable<T>public LazyIterable<T> drop(int count)
drop in interface LazyIterable<T>public LazyIterable<T> takeWhile(Predicate<? super T> predicate)
takeWhile in interface LazyIterable<T>public LazyIterable<T> dropWhile(Predicate<? super T> predicate)
dropWhile in interface LazyIterable<T>public LazyIterable<T> distinct()
distinct in interface LazyIterable<T>public MutableStack<T> toStack()
public <V> Multimap<V,T> groupBy(Function<? super T,? extends V> function)
groupBy in interface RichIterable<T>public <V> Multimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
groupByEach in interface RichIterable<T>public <V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
groupByUniqueKey in interface RichIterable<T>public <S> LazyIterable<Pair<T,S>> zip(Iterable<S> that)
zip in interface LazyIterable<T>zip in interface RichIterable<T>public LazyIterable<Pair<T,Integer>> zipWithIndex()
zipWithIndex in interface LazyIterable<T>zipWithIndex in interface RichIterable<T>public LazyIterable<RichIterable<T>> chunk(int size)
chunk in interface LazyIterable<T>chunk in interface RichIterable<T>public LazyIterable<T> tap(Procedure<? super T> procedure)
tap in interface LazyIterable<T>tap in interface RichIterable<T>public <K,V> MapIterable<K,V> aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
aggregateInPlaceBy in interface RichIterable<T>public <K,V> MapIterable<K,V> aggregateBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V,? super T,? extends V> nonMutatingAggregator)
aggregateBy in interface RichIterable<T>public <V> ObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface RichIterable<T>public <V> ObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface RichIterable<T>public <V> ObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface RichIterable<T>public <V> ObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface RichIterable<T>public Optional<T> minOptional(Comparator<? super T> comparator)
minOptional in interface RichIterable<T>public Optional<T> maxOptional(Comparator<? super T> comparator)
maxOptional in interface RichIterable<T>public Optional<T> minOptional()
minOptional in interface RichIterable<T>public Optional<T> maxOptional()
maxOptional in interface RichIterable<T>public <V extends Comparable<? super V>> Optional<T> minByOptional(Function<? super T,? extends V> function)
minByOptional in interface RichIterable<T>public <V extends Comparable<? super V>> Optional<T> maxByOptional(Function<? super T,? extends V> function)
maxByOptional in interface RichIterable<T>Copyright © 2004–2020. All rights reserved.