ParallelBag<T>
, ParallelListIterable<T>
, ParallelSetIterable<T>
, ParallelSortedBag<T>
, ParallelSortedSetIterable<T>
, ParallelUnsortedBag<T>
, ParallelUnsortedSetIterable<T>
AbstractMultiReaderParallelIterable
, AbstractParallelIterable
, AbstractParallelIterableImpl
, AbstractParallelListIterable
, AbstractParallelSortedSetIterable
, AbstractParallelUnsortedBag
, AbstractParallelUnsortedSetIterable
, AbstractSynchronizedParallelIterable
, ListIterableParallelIterable
, MultiReaderParallelIterable
, MultiReaderParallelListIterable
, MultiReaderParallelUnsortedSetIterable
, NonParallelIterable
, NonParallelListIterable
, NonParallelSortedSetIterable
, NonParallelUnsortedBag
, NonParallelUnsortedSetIterable
, ParallelCollectIterable
, ParallelCollectListIterable
, ParallelCollectUnsortedBag
, ParallelDistinctIterable
, ParallelFlatCollectIterable
, ParallelFlatCollectListIterable
, ParallelSelectIterable
, SynchronizedParallelIterable
, SynchronizedParallelListIterable
, SynchronizedParallelSortedSetIterable
, SynchronizedParallelUnsortedSetIterable
public interface ParallelIterable<T>
Modifier and Type | Method | 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) |
|
boolean |
allSatisfy(Predicate<? super T> predicate) |
|
<P> boolean |
allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
boolean |
anySatisfy(Predicate<? super T> predicate) |
|
<P> boolean |
anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
default void |
appendString(java.lang.Appendable appendable) |
|
default void |
appendString(java.lang.Appendable appendable,
java.lang.String separator) |
|
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end) |
|
ParallelIterable<T> |
asUnique() |
|
<V> ParallelIterable<V> |
collect(Function<? super T,? extends V> function) |
Creates a parallel iterable for collecting elements from the current iterable.
|
<V> ParallelIterable<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
Creates a parallel iterable for selecting and collecting elements from the current iterable.
|
<P,V> ParallelIterable<V> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
|
int |
count(Predicate<? super T> predicate) |
|
<P> int |
countWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
T |
detect(Predicate<? super T> predicate) |
|
T |
detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
|
<P> T |
detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
<P> T |
detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
|
<V> ParallelIterable<V> |
flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function) |
Creates a parallel flattening iterable for the current iterable.
|
void |
forEach(Procedure<? super T> procedure) |
|
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
|
<V> Multimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
|
<V> Multimap<V,T> |
groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function) |
|
<V> MapIterable<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
|
default java.lang.String |
makeString() |
|
default java.lang.String |
makeString(java.lang.String separator) |
|
default java.lang.String |
makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end) |
|
T |
max() |
|
T |
max(java.util.Comparator<? super T> comparator) |
|
<V extends java.lang.Comparable<? super V>> |
maxBy(Function<? super T,? extends V> function) |
|
T |
min() |
|
T |
min(java.util.Comparator<? super T> comparator) |
|
<V extends java.lang.Comparable<? super V>> |
minBy(Function<? super T,? extends V> function) |
|
boolean |
noneSatisfy(Predicate<? super T> predicate) |
|
<P> boolean |
noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
ParallelIterable<T> |
reject(Predicate<? super T> predicate) |
Creates a parallel iterable for rejecting elements from the current iterable.
|
<P> ParallelIterable<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
ParallelIterable<T> |
select(Predicate<? super T> predicate) |
Creates a parallel iterable for selecting elements from the current iterable.
|
<S> ParallelIterable<S> |
selectInstancesOf(java.lang.Class<S> clazz) |
|
<P> ParallelIterable<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
|
double |
sumOfDouble(DoubleFunction<? super T> function) |
Returns the final double result of evaluating function for each element of the iterable in parallel
and adding the results together.
|
double |
sumOfFloat(FloatFunction<? super T> function) |
Returns the final double result of evaluating function for each element of the iterable in parallel
and adding the results together.
|
long |
sumOfInt(IntFunction<? super T> function) |
Returns the final long result of evaluating function for each element of the iterable in parallel
and adding the results together.
|
long |
sumOfLong(LongFunction<? super T> function) |
Returns the final long result of evaluating function for each element of the iterable in parallel
and adding the results together.
|
default java.lang.Object[] |
toArray() |
|
<T1> T1[] |
toArray(T1[] target) |
|
MutableBag<T> |
toBag() |
|
MutableList<T> |
toList() |
|
<NK,NV> MutableMap<NK,NV> |
toMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
|
MutableSet<T> |
toSet() |
|
MutableSortedBag<T> |
toSortedBag() |
|
MutableSortedBag<T> |
toSortedBag(java.util.Comparator<? super T> comparator) |
|
<V extends java.lang.Comparable<? super V>> |
toSortedBagBy(Function<? super T,? extends V> function) |
|
default MutableList<T> |
toSortedList() |
|
MutableList<T> |
toSortedList(java.util.Comparator<? super T> comparator) |
|
<V extends java.lang.Comparable<? super V>> |
toSortedListBy(Function<? super T,? extends V> function) |
|
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(java.util.Comparator<? super NK> comparator,
Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
|
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(Function<? super T,? extends NK> keyFunction,
Function<? super T,? extends NV> valueFunction) |
|
MutableSortedSet<T> |
toSortedSet() |
|
MutableSortedSet<T> |
toSortedSet(java.util.Comparator<? super T> comparator) |
|
<V extends java.lang.Comparable<? super V>> |
toSortedSetBy(Function<? super T,? extends V> function) |
ParallelIterable<T> asUnique()
ParallelIterable<T> select(Predicate<? super T> predicate)
<P> ParallelIterable<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
<S> ParallelIterable<S> selectInstancesOf(java.lang.Class<S> clazz)
ParallelIterable<T> reject(Predicate<? super T> predicate)
<P> ParallelIterable<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
<V> ParallelIterable<V> collect(Function<? super T,? extends V> function)
<P,V> ParallelIterable<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
<V> ParallelIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
<V> ParallelIterable<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
<P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
<P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
<P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
<P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
<P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
<P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
<P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
MutableList<T> toList()
default MutableList<T> toSortedList()
MutableList<T> toSortedList(java.util.Comparator<? super T> comparator)
<V extends java.lang.Comparable<? super V>> MutableList<T> toSortedListBy(Function<? super T,? extends V> function)
MutableSet<T> toSet()
MutableSortedSet<T> toSortedSet()
MutableSortedSet<T> toSortedSet(java.util.Comparator<? super T> comparator)
<V extends java.lang.Comparable<? super V>> MutableSortedSet<T> toSortedSetBy(Function<? super T,? extends V> function)
MutableBag<T> toBag()
MutableSortedBag<T> toSortedBag()
MutableSortedBag<T> toSortedBag(java.util.Comparator<? super T> comparator)
<V extends java.lang.Comparable<? super V>> MutableSortedBag<T> toSortedBagBy(Function<? super T,? extends V> function)
<NK,NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
<NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
<NK,NV> MutableSortedMap<NK,NV> toSortedMap(java.util.Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
default java.lang.Object[] toArray()
<T1> T1[] toArray(T1[] target)
T min()
T max()
<V extends java.lang.Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
<V extends java.lang.Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
long sumOfInt(IntFunction<? super T> function)
double sumOfFloat(FloatFunction<? super T> function)
long sumOfLong(LongFunction<? super T> function)
double sumOfDouble(DoubleFunction<? super T> function)
default java.lang.String makeString()
default java.lang.String makeString(java.lang.String separator)
default java.lang.String makeString(java.lang.String start, java.lang.String separator, java.lang.String end)
default void appendString(java.lang.Appendable appendable)
default void appendString(java.lang.Appendable appendable, java.lang.String separator)
void appendString(java.lang.Appendable appendable, java.lang.String start, java.lang.String separator, java.lang.String end)
<V> Multimap<V,T> groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
<V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
<K,V> MapIterable<K,V> aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
Copyright © 2004–2018. All rights reserved.