public abstract class AbstractSynchronizedParallelIterable<T,PI extends ParallelIterable<T>> extends Object implements ParallelIterable<T>
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) |
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) |
void |
appendString(Appendable appendable) |
void |
appendString(Appendable appendable,
String separator) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
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) |
void |
forEach(Procedure<? super T> procedure) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
<V> MapIterable<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
String |
makeString() |
String |
makeString(String separator) |
String |
makeString(String start,
String separator,
String end) |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends 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) |
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.
|
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(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedBagBy(Function<? super T,? extends V> function) |
MutableList<T> |
toSortedList() |
MutableList<T> |
toSortedList(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedListBy(Function<? super T,? extends V> function) |
<NK,NV> MutableSortedMap<NK,NV> |
toSortedMap(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(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
toSortedSetBy(Function<? super T,? extends V> function) |
String |
toString() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
asUnique, collect, collectIf, collectWith, flatCollect, groupBy, groupByEach, reject, rejectWith, select, selectInstancesOf, selectWith
public void forEach(Procedure<? super T> procedure)
forEach
in interface ParallelIterable<T>
public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith
in interface ParallelIterable<T>
public T detect(Predicate<? super T> predicate)
detect
in interface ParallelIterable<T>
public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
detectWith
in interface ParallelIterable<T>
public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
detectIfNone
in interface ParallelIterable<T>
public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
detectWithIfNone
in interface ParallelIterable<T>
public int count(Predicate<? super T> predicate)
count
in interface ParallelIterable<T>
public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
countWith
in interface ParallelIterable<T>
public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy
in interface ParallelIterable<T>
public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith
in interface ParallelIterable<T>
public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy
in interface ParallelIterable<T>
public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith
in interface ParallelIterable<T>
public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy
in interface ParallelIterable<T>
public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith
in interface ParallelIterable<T>
public MutableList<T> toList()
toList
in interface ParallelIterable<T>
public MutableList<T> toSortedList()
toSortedList
in interface ParallelIterable<T>
public MutableList<T> toSortedList(Comparator<? super T> comparator)
toSortedList
in interface ParallelIterable<T>
public <V extends Comparable<? super V>> MutableList<T> toSortedListBy(Function<? super T,? extends V> function)
toSortedListBy
in interface ParallelIterable<T>
public MutableSet<T> toSet()
toSet
in interface ParallelIterable<T>
public MutableSortedSet<T> toSortedSet()
toSortedSet
in interface ParallelIterable<T>
public MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
toSortedSet
in interface ParallelIterable<T>
public <V extends Comparable<? super V>> MutableSortedSet<T> toSortedSetBy(Function<? super T,? extends V> function)
toSortedSetBy
in interface ParallelIterable<T>
public MutableBag<T> toBag()
toBag
in interface ParallelIterable<T>
public MutableSortedBag<T> toSortedBag()
toSortedBag
in interface ParallelIterable<T>
public MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
toSortedBag
in interface ParallelIterable<T>
public <V extends Comparable<? super V>> MutableSortedBag<T> toSortedBagBy(Function<? super T,? extends V> function)
toSortedBagBy
in interface ParallelIterable<T>
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toMap
in interface ParallelIterable<T>
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap
in interface ParallelIterable<T>
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
toSortedMap
in interface ParallelIterable<T>
public Object[] toArray()
toArray
in interface ParallelIterable<T>
public <T1> T1[] toArray(T1[] target)
toArray
in interface ParallelIterable<T>
public T min(Comparator<? super T> comparator)
min
in interface ParallelIterable<T>
public T max(Comparator<? super T> comparator)
max
in interface ParallelIterable<T>
public T min()
min
in interface ParallelIterable<T>
public T max()
max
in interface ParallelIterable<T>
public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
minBy
in interface ParallelIterable<T>
public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
maxBy
in interface ParallelIterable<T>
public long sumOfInt(IntFunction<? super T> function)
ParallelIterable
sumOfInt
in interface ParallelIterable<T>
public double sumOfFloat(FloatFunction<? super T> function)
ParallelIterable
sumOfFloat
in interface ParallelIterable<T>
public long sumOfLong(LongFunction<? super T> function)
ParallelIterable
sumOfLong
in interface ParallelIterable<T>
public double sumOfDouble(DoubleFunction<? super T> function)
ParallelIterable
sumOfDouble
in interface ParallelIterable<T>
public String makeString()
makeString
in interface ParallelIterable<T>
public String makeString(String separator)
makeString
in interface ParallelIterable<T>
public String makeString(String start, String separator, String end)
makeString
in interface ParallelIterable<T>
public void appendString(Appendable appendable)
appendString
in interface ParallelIterable<T>
public void appendString(Appendable appendable, String separator)
appendString
in interface ParallelIterable<T>
public void appendString(Appendable appendable, String start, String separator, String end)
appendString
in interface ParallelIterable<T>
public <V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
groupByUniqueKey
in interface ParallelIterable<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 ParallelIterable<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 ParallelIterable<T>
Copyright © 2004–2016. All rights reserved.