Class AbstractLazyIterable<T>
- All Implemented Interfaces:
- Iterable<T>,- InternalIterable<T>,- LazyIterable<T>,- RichIterable<T>
- Direct Known Subclasses:
- ChunkBooleanIterable,- ChunkByteIterable,- ChunkCharIterable,- ChunkDoubleIterable,- ChunkFloatIterable,- ChunkIntIterable,- ChunkIterable,- ChunkLongIterable,- ChunkShortIterable,- CollectBooleanToObjectIterable,- CollectByteToObjectIterable,- CollectCharToObjectIterable,- CollectDoubleToObjectIterable,- CollectFloatToObjectIterable,- CollectIntToObjectIterable,- CollectIterable,- CollectLongToObjectIterable,- CollectShortToObjectIterable,- CompositeIterable,- DistinctIterable,- DropIterable,- DropWhileIterable,- FlatCollectBooleanToObjectIterable,- FlatCollectByteToObjectIterable,- FlatCollectCharToObjectIterable,- FlatCollectDoubleToObjectIterable,- FlatCollectFloatToObjectIterable,- FlatCollectIntToObjectIterable,- FlatCollectIterable,- FlatCollectLongToObjectIterable,- FlatCollectShortToObjectIterable,- Interval,- LazyIterableAdapter,- RejectIterable,- ReverseIterable,- SelectInstancesOfIterable,- SelectIterable,- TakeIterable,- TakeWhileIterable,- TapIterable,- ZipIterable,- ZipWithIndexIterable
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionasLazy()Returns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this).chunk(int size) Creates a deferred chunk iterable.<V> LazyIterable<V>Creates a deferred iterable for collecting elements from the current iterable.collectBoolean(BooleanFunction<? super T> booleanFunction) Returns a lazy BooleanIterable which will transform the underlying iterable data to boolean values based on the booleanFunction.collectByte(ByteFunction<? super T> byteFunction) Returns a lazy ByteIterable which will transform the underlying iterable data to byte values based on the byteFunction.collectChar(CharFunction<? super T> charFunction) Returns a lazy CharIterable which will transform the underlying iterable data to char values based on the charFunction.collectDouble(DoubleFunction<? super T> doubleFunction) Returns a lazy DoubleIterable which will transform the underlying iterable data to double values based on the doubleFunction.collectFloat(FloatFunction<? super T> floatFunction) Returns a lazy FloatIterable which will transform the underlying iterable data to float values based on the floatFunction.<V> LazyIterable<V>Creates a deferred iterable for selecting and collecting elements from the current iterable.collectInt(IntFunction<? super T> intFunction) Returns a lazy IntIterable which will transform the underlying iterable data to int values based on the intFunction.collectLong(LongFunction<? super T> longFunction) Returns a lazy LongIterable which will transform the underlying iterable data to long values based on the longFunction.collectShort(ShortFunction<? super T> shortFunction) Returns a lazy ShortIterable which will transform the underlying iterable data to short values based on the shortFunction.<P,V> LazyIterable<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) Same asRichIterable.collect(Function)with aFunction2and specified parameter which is passed to the block.concatenate(Iterable<T> iterable) Creates a deferred iterable that will join this iterable with the specified iterable.distinct()Creates a deferred distinct iterable to get distinct elements from the current iterable.drop(int count) Creates a deferred drop iterable for the current iterable using the specified count as the limit.<V> LazyIterable<V>flatCollect(Function<? super T, ? extends Iterable<V>> function) Creates a deferred flattening iterable for the current iterable.getFirst()Returns the first element of an iterable.getLast()Returns the last element of an iterable.getOnly()Returns the element if the iterable has exactly one element.For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable.groupByEach(Function<? super T, ? extends Iterable<V>> function) Similar toRichIterable.groupBy(Function), except the result of evaluating function will return a collection of keys for each value.<V> MapIterable<V,T> groupByUniqueKey(Function<? super T, ? extends V> function) For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key.<R extends Collection<T>>
 Rinto(R target) Adds all the elements in this iterable to the specific target Collection.booleanisEmpty()Returns true if this iterable has zero items.<V extends Comparable<? super V>>
 Optional<T>maxByOptional(Function<? super T, ? extends V> function) Returns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional.Returns the maximum element out of this container based on the natural order as an Optional.maxOptional(Comparator<? super T> comparator) Returns the maximum element out of this container based on the comparator as an Optional.<V extends Comparable<? super V>>
 Optional<T>minByOptional(Function<? super T, ? extends V> function) Returns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional.Returns the minimum element out of this container based on the natural order as an Optional.minOptional(Comparator<? super T> comparator) Returns the minimum element out of this container based on the comparator as an Optional.Filters a collection into a PartitionedIterable based on the evaluation of the predicate.<P> PartitionMutableList<T>partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) Filters a collection into a PartitionIterable based on the evaluation of the predicate.Creates a deferred iterable for rejecting elements from the current iterable.<P> LazyIterable<T>rejectWith(Predicate2<? super T, ? super P> predicate, P parameter) Similar toRichIterable.reject(Predicate), except with an evaluation parameter for the second generic argument inPredicate2.Creates a deferred iterable for selecting elements from the current iterable.<S> LazyIterable<S>selectInstancesOf(Class<S> clazz) Returns all elements of the source collection that are instances of the Classclazz.<P> LazyIterable<T>selectWith(Predicate2<? super T, ? super P> predicate, P parameter) Similar toRichIterable.select(Predicate), except with an evaluation parameter for the second generic argument inPredicate2.intsize()Returns the number of items in this iterable.<V> ObjectDoubleMap<V>sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectDoubleMap<V>sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectLongMap<V>sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) Groups and sums the values using the two specified functions.<V> ObjectLongMap<V>sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) Groups and sums the values using the two specified functions.take(int count) Creates a deferred take iterable for the current iterable using the specified count as the limit.Creates a deferred tap iterable.<E> E[]toArray(E[] array) Converts this iterable to an array using the specified target array, assuming the target array is as long or longer than the iterable.toStack()<S> LazyIterable<Pair<T,S>> Creates a deferred zip iterable.Creates a deferred zipWithIndex iterable.Methods inherited from class org.eclipse.collections.impl.AbstractRichIterableallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, collect, collectIf, 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, zipWithIndexMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.collections.api.InternalIterableforEach, forEachWith, forEachWithIndexMethods inherited from interface java.lang.Iterableiterator, spliteratorMethods inherited from interface org.eclipse.collections.api.LazyIterableflatCollectWithMethods inherited from interface org.eclipse.collections.api.RichIterableaggregateBy, aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countBy, countByEach, countByEach, countByWith, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, makeString, 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, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndex
- 
Constructor Details- 
AbstractLazyIterablepublic AbstractLazyIterable()
 
- 
- 
Method Details- 
asLazyDescription copied from interface:RichIterableReturns a lazy (deferred) iterable, most likely implemented by calling LazyIterate.adapt(this).- Specified by:
- asLazyin interface- RichIterable<T>
- Overrides:
- asLazyin class- AbstractRichIterable<T>
 
- 
intoDescription copied from interface:RichIterableAdds all the elements in this iterable to the specific target Collection.- Specified by:
- intoin interface- LazyIterable<T>
- Specified by:
- intoin interface- RichIterable<T>
- Overrides:
- intoin class- AbstractRichIterable<T>
 
- 
toArraypublic <E> E[] toArray(E[] array) Description copied from interface:RichIterableConverts this iterable to an array using the specified target array, assuming the target array is as long or longer than the iterable.- Specified by:
- toArrayin interface- RichIterable<T>
- Overrides:
- toArrayin class- AbstractRichIterable<T>
- See Also:
 
- 
sizepublic int size()Description copied from interface:RichIterableReturns the number of items in this iterable.- Specified by:
- sizein interface- RichIterable<T>
 
- 
isEmptypublic boolean isEmpty()Description copied from interface:RichIterableReturns true if this iterable has zero items.- Specified by:
- isEmptyin interface- RichIterable<T>
- Overrides:
- isEmptyin class- AbstractRichIterable<T>
 
- 
getFirstDescription copied from interface:RichIterableReturns the first element of an iterable. In the case of a List it is the element at the first index. In the case of any other Collection, it is the first element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the first element could be any element from the Set. - Specified by:
- getFirstin interface- LazyIterable<T>
- Specified by:
- getFirstin interface- RichIterable<T>
 
- 
getLastDescription copied from interface:RichIterableReturns the last element of an iterable. In the case of a List it is the element at the last index. In the case of any other Collection, it is the last element that would be returned during an iteration. If the iterable is empty, null is returned. If null is a valid element of the container, then a developer would need to check to see if the iterable is empty to validate that a null result was not due to the container being empty.The order of Sets are not guaranteed (except for TreeSets and other Ordered Set implementations), so if you use this method, the last element could be any element from the Set. - Specified by:
- getLastin interface- RichIterable<T>
 
- 
getOnlyDescription copied from interface:RichIterableReturns the element if the iterable has exactly one element. Otherwise, throwIllegalStateException.- Specified by:
- getOnlyin interface- RichIterable<T>
- Returns:
- an element of an iterable.
 
- 
selectDescription copied from interface:LazyIterableCreates a deferred iterable for selecting elements from the current iterable.- Specified by:
- selectin interface- LazyIterable<T>
- Specified by:
- selectin interface- RichIterable<T>
 
- 
selectWithDescription copied from interface:RichIterableSimilar toRichIterable.select(Predicate), except with an evaluation parameter for the second generic argument inPredicate2.E.g. return a Collectionof Person elements where the person has an age greater than or equal to 18 yearsExample using a Java 8 lambda expression: RichIterable<Person> selected = people.selectWith((Person person, Integer age) -> person.getAge()>= age, Integer.valueOf(18));Example using an anonymous inner class: RichIterable<Person> selected = people.selectWith(new Predicate2<Person, Integer>() { public boolean accept(Person person, Integer age) { return person.getAge()>= age; } }, Integer.valueOf(18));- Specified by:
- selectWithin interface- LazyIterable<T>
- Specified by:
- selectWithin interface- RichIterable<T>
- Parameters:
- predicate- a- Predicate2to use as the select criteria
- parameter- a parameter to pass in for evaluation of the second argument- Pin- predicate
- See Also:
 
- 
rejectDescription copied from interface:LazyIterableCreates a deferred iterable for rejecting elements from the current iterable.- Specified by:
- rejectin interface- LazyIterable<T>
- Specified by:
- rejectin interface- RichIterable<T>
- Parameters:
- predicate- a- Predicateto use as the reject criteria
- Returns:
- a RichIterable that contains elements that cause Predicate.accept(Object)method to evaluate to false
 
- 
rejectWithDescription copied from interface:RichIterableSimilar toRichIterable.reject(Predicate), except with an evaluation parameter for the second generic argument inPredicate2.E.g. return a Collectionof Person elements where the person has an age greater than or equal to 18 yearsExample using a Java 8 lambda expression: RichIterable<Person> rejected = people.rejectWith((Person person, Integer age) -> person.getAge() < age, Integer.valueOf(18));Example using an anonymous inner class: MutableList<Person> rejected = people.rejectWith(new Predicate2<Person, Integer>() { public boolean accept(Person person, Integer age) { return person.getAge() < age; } }, Integer.valueOf(18));- Specified by:
- rejectWithin interface- LazyIterable<T>
- Specified by:
- rejectWithin interface- RichIterable<T>
- Parameters:
- predicate- a- Predicate2to use as the select criteria
- parameter- a parameter to pass in for evaluation of the second argument- Pin- predicate
- See Also:
 
- 
partitionDescription copied from interface:RichIterableFilters a collection into a PartitionedIterable based on the evaluation of the predicate.Example using a Java 8 lambda expression: PartitionIterable<Person> newYorkersAndNonNewYorkers = people.partition(person -> person.getAddress().getState().getName().equals("New York"));Example using an anonymous inner class: PartitionIterable<Person> newYorkersAndNonNewYorkers = people.partition(new Predicate<Person>() { public boolean accept(Person person) { return person.getAddress().getState().getName().equals("New York"); } });- Specified by:
- partitionin interface- RichIterable<T>
 
- 
partitionWithpublic <P> PartitionMutableList<T> partitionWith(Predicate2<? super T, ? super P> predicate, P parameter) Description copied from interface:RichIterableFilters a collection into a PartitionIterable based on the evaluation of the predicate.Example using a Java 8 lambda expression: PartitionIterable<Person> newYorkersAndNonNewYorkers = people.partitionWith((Person person, String state) -> person.getAddress().getState().getName().equals(state), "New York");Example using an anonymous inner class: PartitionIterable<Person> newYorkersAndNonNewYorkers = people.partitionWith(new Predicate2<Person, String>() { public boolean accept(Person person, String state) { return person.getAddress().getState().getName().equals(state); } }, "New York");- Specified by:
- partitionWithin interface- RichIterable<T>
 
- 
selectInstancesOfDescription copied from interface:RichIterableReturns all elements of the source collection that are instances of the Classclazz.RichIterable<Integer> integers = List.mutable.with(new Integer(0), new Long(0L), new Double(0.0)).selectInstancesOf(Integer.class);- Specified by:
- selectInstancesOfin interface- LazyIterable<T>
- Specified by:
- selectInstancesOfin interface- RichIterable<T>
 
- 
collectDescription copied from interface:LazyIterableCreates a deferred iterable for collecting elements from the current iterable.- Specified by:
- collectin interface- LazyIterable<T>
- Specified by:
- collectin interface- RichIterable<T>
 
- 
collectBooleanDescription copied from interface:LazyIterableReturns a lazy BooleanIterable which will transform the underlying iterable data to boolean values based on the booleanFunction.- Specified by:
- collectBooleanin interface- LazyIterable<T>
- Specified by:
- collectBooleanin interface- RichIterable<T>
 
- 
collectByteDescription copied from interface:LazyIterableReturns a lazy ByteIterable which will transform the underlying iterable data to byte values based on the byteFunction.- Specified by:
- collectBytein interface- LazyIterable<T>
- Specified by:
- collectBytein interface- RichIterable<T>
 
- 
collectCharDescription copied from interface:LazyIterableReturns a lazy CharIterable which will transform the underlying iterable data to char values based on the charFunction.- Specified by:
- collectCharin interface- LazyIterable<T>
- Specified by:
- collectCharin interface- RichIterable<T>
 
- 
collectDoubleDescription copied from interface:LazyIterableReturns a lazy DoubleIterable which will transform the underlying iterable data to double values based on the doubleFunction.- Specified by:
- collectDoublein interface- LazyIterable<T>
- Specified by:
- collectDoublein interface- RichIterable<T>
 
- 
collectFloatDescription copied from interface:LazyIterableReturns a lazy FloatIterable which will transform the underlying iterable data to float values based on the floatFunction.- Specified by:
- collectFloatin interface- LazyIterable<T>
- Specified by:
- collectFloatin interface- RichIterable<T>
 
- 
collectIntDescription copied from interface:LazyIterableReturns a lazy IntIterable which will transform the underlying iterable data to int values based on the intFunction.- Specified by:
- collectIntin interface- LazyIterable<T>
- Specified by:
- collectIntin interface- RichIterable<T>
 
- 
collectLongDescription copied from interface:LazyIterableReturns a lazy LongIterable which will transform the underlying iterable data to long values based on the longFunction.- Specified by:
- collectLongin interface- LazyIterable<T>
- Specified by:
- collectLongin interface- RichIterable<T>
 
- 
collectShortDescription copied from interface:LazyIterableReturns a lazy ShortIterable which will transform the underlying iterable data to short values based on the shortFunction.- Specified by:
- collectShortin interface- LazyIterable<T>
- Specified by:
- collectShortin interface- RichIterable<T>
 
- 
collectWithpublic <P,V> LazyIterable<V> collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter) Description copied from interface:RichIterableSame asRichIterable.collect(Function)with aFunction2and specified parameter which is passed to the block.Example using a Java 8 lambda expression: RichIterable<Integer> integers = Lists.mutable.with(1, 2, 3).collectWith((each, parameter) -> each + parameter, Integer.valueOf(1));Example using an anonymous inner class: Function2<Integer, Integer, Integer> addParameterFunction = new Function2<Integer, Integer, Integer>() { public Integer value(Integer each, Integer parameter) { return each + parameter; } }; RichIterable<Integer> integers = Lists.mutable.with(1, 2, 3).collectWith(addParameterFunction, Integer.valueOf(1));- Specified by:
- collectWithin interface- LazyIterable<T>
- Specified by:
- collectWithin interface- RichIterable<T>
- Parameters:
- function- A- Function2to use as the collect transformation function
- parameter- A parameter to pass in for evaluation of the second argument- Pin- function
- Returns:
- A new RichIterablethat contains the transformed elements returned byFunction2.value(Object, Object)
- See Also:
 
- 
flatCollectDescription copied from interface:LazyIterableCreates a deferred flattening iterable for the current iterable.- Specified by:
- flatCollectin interface- LazyIterable<T>
- Specified by:
- flatCollectin interface- RichIterable<T>
- Parameters:
- function- The- Functionto apply
- Returns:
- a new flattened collection produced by applying the given function
 
- 
concatenateDescription copied from interface:LazyIterableCreates a deferred iterable that will join this iterable with the specified iterable.- Specified by:
- concatenatein interface- LazyIterable<T>
 
- 
collectIfpublic <V> LazyIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function) Description copied from interface:LazyIterableCreates a deferred iterable for selecting and collecting elements from the current iterable.- Specified by:
- collectIfin interface- LazyIterable<T>
- Specified by:
- collectIfin interface- RichIterable<T>
 
- 
takeDescription copied from interface:LazyIterableCreates a deferred take iterable for the current iterable using the specified count as the limit.- Specified by:
- takein interface- LazyIterable<T>
 
- 
dropDescription copied from interface:LazyIterableCreates a deferred drop iterable for the current iterable using the specified count as the limit.- Specified by:
- dropin interface- LazyIterable<T>
 
- 
takeWhile- Specified by:
- takeWhilein interface- LazyIterable<T>
- See Also:
 
- 
dropWhile- Specified by:
- dropWhilein interface- LazyIterable<T>
- See Also:
 
- 
distinctDescription copied from interface:LazyIterableCreates a deferred distinct iterable to get distinct elements from the current iterable.- Specified by:
- distinctin interface- LazyIterable<T>
 
- 
toStack
- 
groupByDescription copied from interface:RichIterableFor each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable.Example using a Java 8 method reference: Multimap<String, Person> peopleByLastName = people.groupBy(Person::getLastName);Example using an anonymous inner class: Multimap<String, Person> peopleByLastName = people.groupBy(new Function<Person, String>() { public String valueOf(Person person) { return person.getLastName(); } });- Specified by:
- groupByin interface- RichIterable<T>
 
- 
groupByEachDescription copied from interface:RichIterableSimilar toRichIterable.groupBy(Function), except the result of evaluating function will return a collection of keys for each value.- Specified by:
- groupByEachin interface- RichIterable<T>
 
- 
groupByUniqueKeyDescription copied from interface:RichIterableFor each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. The generated keys must each be unique, or else an exception is thrown.- Specified by:
- groupByUniqueKeyin interface- RichIterable<T>
- See Also:
 
- 
zipDescription copied from interface:LazyIterableCreates a deferred zip iterable.- Specified by:
- zipin interface- LazyIterable<T>
- Specified by:
- zipin interface- RichIterable<T>
- Type Parameters:
- S- the type of the second half of the returned pairs
- Parameters:
- that- The- RichIterableproviding the second half of each result pair
- Returns:
- A new RichIterablecontaining pairs consisting of corresponding elements of thisRichIterableand that. The length of the returnedRichIterableis the minimum of the lengths of thisRichIterableand that.
 
- 
zipWithIndexDescription copied from interface:LazyIterableCreates a deferred zipWithIndex iterable.- Specified by:
- zipWithIndexin interface- LazyIterable<T>
- Specified by:
- zipWithIndexin interface- RichIterable<T>
- Returns:
- A new RichIterablecontaining pairs consisting of all elements of thisRichIterablepaired with their index. Indices start at 0.
- See Also:
 
- 
chunkDescription copied from interface:LazyIterableCreates a deferred chunk iterable.- Specified by:
- chunkin interface- LazyIterable<T>
- Specified by:
- chunkin interface- RichIterable<T>
- Parameters:
- size- the number of elements per chunk
- Returns:
- A RichIterablecontainingRichIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
 
- 
tapDescription copied from interface:LazyIterableCreates a deferred tap iterable.- Specified by:
- tapin interface- LazyIterable<T>
- Specified by:
- tapin interface- RichIterable<T>
- See Also:
 
- 
sumByIntpublic <V> ObjectLongMap<V> sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function) Description copied from interface:RichIterableGroups and sums the values using the two specified functions.- Specified by:
- sumByIntin interface- RichIterable<T>
 
- 
sumByFloatpublic <V> ObjectDoubleMap<V> sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function) Description copied from interface:RichIterableGroups and sums the values using the two specified functions.- Specified by:
- sumByFloatin interface- RichIterable<T>
 
- 
sumByLongpublic <V> ObjectLongMap<V> sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function) Description copied from interface:RichIterableGroups and sums the values using the two specified functions.- Specified by:
- sumByLongin interface- RichIterable<T>
 
- 
sumByDoublepublic <V> ObjectDoubleMap<V> sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function) Description copied from interface:RichIterableGroups and sums the values using the two specified functions.- Specified by:
- sumByDoublein interface- RichIterable<T>
 
- 
minOptionalDescription copied from interface:RichIterableReturns the minimum element out of this container based on the comparator as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- minOptionalin interface- RichIterable<T>
 
- 
maxOptionalDescription copied from interface:RichIterableReturns the maximum element out of this container based on the comparator as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- maxOptionalin interface- RichIterable<T>
 
- 
minOptionalDescription copied from interface:RichIterableReturns the minimum element out of this container based on the natural order as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- minOptionalin interface- RichIterable<T>
 
- 
maxOptionalDescription copied from interface:RichIterableReturns the maximum element out of this container based on the natural order as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- maxOptionalin interface- RichIterable<T>
 
- 
minByOptionalpublic <V extends Comparable<? super V>> Optional<T> minByOptional(Function<? super T, ? extends V> function) Description copied from interface:RichIterableReturns the minimum elements out of this container based on the natural order of the attribute returned by Function as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- minByOptionalin interface- RichIterable<T>
 
- 
maxByOptionalpublic <V extends Comparable<? super V>> Optional<T> maxByOptional(Function<? super T, ? extends V> function) Description copied from interface:RichIterableReturns the maximum elements out of this container based on the natural order of the attribute returned by Function as an Optional. If the container is emptyOptional.empty()is returned.- Specified by:
- maxByOptionalin interface- RichIterable<T>
 
 
-