public abstract class AbstractParallelIterable<T,B extends Batch<T>>
extends java.lang.Object
implements com.gs.collections.api.ParallelIterable<T>
| Constructor and Description |
|---|
AbstractParallelIterable() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> com.gs.collections.api.map.MapIterable<K,V> |
aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator) |
<K,V> com.gs.collections.api.map.MapIterable<K,V> |
aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy,
com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory,
com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator) |
protected static <T> boolean |
allSatisfy(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
protected static <T> boolean |
anySatisfy(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
void |
appendString(java.lang.Appendable appendable) |
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) |
protected <S,V> void |
collectCombine(com.gs.collections.api.block.function.Function<Batch<T>,V> function,
com.gs.collections.api.block.procedure.Procedure2<S,V> combineProcedure,
S state) |
int |
count(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> int |
countWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
protected static <T> T |
detect(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable,
com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
T |
detectIfNone(com.gs.collections.api.block.predicate.Predicate<? super T> predicate,
com.gs.collections.api.block.function.Function0<? extends T> function) |
<P> T |
detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
<P> T |
detectWithIfNone(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter,
com.gs.collections.api.block.function.Function0<? extends T> function) |
protected static <T> void |
forEach(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable,
com.gs.collections.api.block.procedure.Procedure<? super T> procedure) |
<P> void |
forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
abstract int |
getBatchSize() |
abstract java.util.concurrent.ExecutorService |
getExecutorService() |
<V> com.gs.collections.api.map.MapIterable<V,T> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
protected abstract boolean |
isOrdered() |
java.lang.String |
makeString() |
java.lang.String |
makeString(java.lang.String separator) |
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(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
T |
min() |
T |
min(java.util.Comparator<? super T> comparator) |
<V extends java.lang.Comparable<? super V>> |
minBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
abstract com.gs.collections.api.LazyIterable<B> |
split() |
double |
sumOfDouble(com.gs.collections.api.block.function.primitive.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(com.gs.collections.api.block.function.primitive.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(com.gs.collections.api.block.function.primitive.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(com.gs.collections.api.block.function.primitive.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.
|
java.lang.Object[] |
toArray() |
<E> E[] |
toArray(E[] array) |
com.gs.collections.api.bag.MutableBag<T> |
toBag() |
com.gs.collections.api.list.MutableList<T> |
toList() |
<NK,NV> com.gs.collections.api.map.MutableMap<NK,NV> |
toMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
com.gs.collections.api.set.MutableSet<T> |
toSet() |
com.gs.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag() |
com.gs.collections.api.bag.sorted.MutableSortedBag<T> |
toSortedBag(java.util.Comparator<? super T> comparator) |
<V extends java.lang.Comparable<? super V>> |
toSortedBagBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
com.gs.collections.api.list.MutableList<T> |
toSortedList() |
com.gs.collections.api.list.MutableList<T> |
toSortedList(java.util.Comparator<? super T> comparator) |
<V extends java.lang.Comparable<? super V>> |
toSortedListBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
<NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> |
toSortedMap(java.util.Comparator<? super NK> comparator,
com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
<NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> |
toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction) |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet() |
com.gs.collections.api.set.sorted.MutableSortedSet<T> |
toSortedSet(java.util.Comparator<? super T> comparator) |
<V extends java.lang.Comparable<? super V>> |
toSortedSetBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
java.lang.String |
toString() |
protected static <T> void forEach(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable, com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
protected static <T> boolean anySatisfy(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable, com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
protected static <T> boolean allSatisfy(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable, com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
protected static <T> T detect(AbstractParallelIterable<T,? extends RootBatch<T>> parallelIterable, com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
public abstract java.util.concurrent.ExecutorService getExecutorService()
public abstract int getBatchSize()
public abstract com.gs.collections.api.LazyIterable<B> split()
protected abstract boolean isOrdered()
protected <S,V> void collectCombine(com.gs.collections.api.block.function.Function<Batch<T>,V> function, com.gs.collections.api.block.procedure.Procedure2<S,V> combineProcedure, S state)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String makeString()
makeString in interface com.gs.collections.api.ParallelIterable<T>public java.lang.String makeString(java.lang.String separator)
makeString in interface com.gs.collections.api.ParallelIterable<T>public java.lang.String makeString(java.lang.String start,
java.lang.String separator,
java.lang.String end)
makeString in interface com.gs.collections.api.ParallelIterable<T>public void appendString(java.lang.Appendable appendable)
appendString in interface com.gs.collections.api.ParallelIterable<T>public void appendString(java.lang.Appendable appendable,
java.lang.String separator)
appendString in interface com.gs.collections.api.ParallelIterable<T>public void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
appendString in interface com.gs.collections.api.ParallelIterable<T>public <P> void forEachWith(com.gs.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface com.gs.collections.api.ParallelIterable<T>public <P> boolean anySatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface com.gs.collections.api.ParallelIterable<T>public <P> boolean allSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface com.gs.collections.api.ParallelIterable<T>public boolean noneSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
noneSatisfy in interface com.gs.collections.api.ParallelIterable<T>public <P> boolean noneSatisfyWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface com.gs.collections.api.ParallelIterable<T>public <P> T detectWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface com.gs.collections.api.ParallelIterable<T>public T detectIfNone(com.gs.collections.api.block.predicate.Predicate<? super T> predicate, com.gs.collections.api.block.function.Function0<? extends T> function)
detectIfNone in interface com.gs.collections.api.ParallelIterable<T>public <P> T detectWithIfNone(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter, com.gs.collections.api.block.function.Function0<? extends T> function)
detectWithIfNone in interface com.gs.collections.api.ParallelIterable<T>public java.lang.Object[] toArray()
toArray in interface com.gs.collections.api.ParallelIterable<T>public <E> E[] toArray(E[] array)
toArray in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.list.MutableList<T> toList()
toList in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.list.MutableList<T> toSortedList()
toSortedList in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.list.MutableList<T> toSortedList(java.util.Comparator<? super T> comparator)
toSortedList in interface com.gs.collections.api.ParallelIterable<T>public <V extends java.lang.Comparable<? super V>> com.gs.collections.api.list.MutableList<T> toSortedListBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedListBy in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.set.MutableSet<T> toSet()
toSet in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet()
toSortedSet in interface com.gs.collections.api.ParallelIterable<T>public <V extends java.lang.Comparable<? super V>> com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSetBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedSetBy in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.bag.MutableBag<T> toBag()
toBag in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag()
toSortedBag in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBag(java.util.Comparator<? super T> comparator)
toSortedBag in interface com.gs.collections.api.ParallelIterable<T>public <V extends java.lang.Comparable<? super V>> com.gs.collections.api.bag.sorted.MutableSortedBag<T> toSortedBagBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
toSortedBagBy in interface com.gs.collections.api.ParallelIterable<T>public com.gs.collections.api.set.sorted.MutableSortedSet<T> toSortedSet(java.util.Comparator<? super T> comparator)
toSortedSet in interface com.gs.collections.api.ParallelIterable<T>public <NK,NV> com.gs.collections.api.map.MutableMap<NK,NV> toMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toMap in interface com.gs.collections.api.ParallelIterable<T>public <NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> toSortedMap(com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction, com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toSortedMap in interface com.gs.collections.api.ParallelIterable<T>public <NK,NV> com.gs.collections.api.map.sorted.MutableSortedMap<NK,NV> toSortedMap(java.util.Comparator<? super NK> comparator,
com.gs.collections.api.block.function.Function<? super T,? extends NK> keyFunction,
com.gs.collections.api.block.function.Function<? super T,? extends NV> valueFunction)
toSortedMap in interface com.gs.collections.api.ParallelIterable<T>public <K,V> com.gs.collections.api.map.MapIterable<K,V> aggregateBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.function.Function2<? super V,? super T,? extends V> nonMutatingAggregator)
aggregateBy in interface com.gs.collections.api.ParallelIterable<T>public <K,V> com.gs.collections.api.map.MapIterable<K,V> aggregateInPlaceBy(com.gs.collections.api.block.function.Function<? super T,? extends K> groupBy, com.gs.collections.api.block.function.Function0<? extends V> zeroValueFactory, com.gs.collections.api.block.procedure.Procedure2<? super V,? super T> mutatingAggregator)
aggregateInPlaceBy in interface com.gs.collections.api.ParallelIterable<T>public int count(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
count in interface com.gs.collections.api.ParallelIterable<T>public <P> int countWith(com.gs.collections.api.block.predicate.Predicate2<? super T,? super P> predicate, P parameter)
countWith in interface com.gs.collections.api.ParallelIterable<T>public T min(java.util.Comparator<? super T> comparator)
min in interface com.gs.collections.api.ParallelIterable<T>public T max(java.util.Comparator<? super T> comparator)
max in interface com.gs.collections.api.ParallelIterable<T>public <V extends java.lang.Comparable<? super V>> T minBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
minBy in interface com.gs.collections.api.ParallelIterable<T>public <V extends java.lang.Comparable<? super V>> T maxBy(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
maxBy in interface com.gs.collections.api.ParallelIterable<T>public long sumOfInt(com.gs.collections.api.block.function.primitive.IntFunction<? super T> function)
com.gs.collections.api.ParallelIterablesumOfInt in interface com.gs.collections.api.ParallelIterable<T>public double sumOfFloat(com.gs.collections.api.block.function.primitive.FloatFunction<? super T> function)
com.gs.collections.api.ParallelIterablesumOfFloat in interface com.gs.collections.api.ParallelIterable<T>public long sumOfLong(com.gs.collections.api.block.function.primitive.LongFunction<? super T> function)
com.gs.collections.api.ParallelIterablesumOfLong in interface com.gs.collections.api.ParallelIterable<T>public double sumOfDouble(com.gs.collections.api.block.function.primitive.DoubleFunction<? super T> function)
com.gs.collections.api.ParallelIterablesumOfDouble in interface com.gs.collections.api.ParallelIterable<T>