public abstract class AbstractMultiReaderParallelIterable<T,PI extends com.gs.collections.api.ParallelIterable<T>>
extends java.lang.Object
implements com.gs.collections.api.ParallelIterable<T>
| Modifier and Type | Field and Description |
|---|---|
protected PI |
delegate |
protected java.util.concurrent.locks.ReadWriteLock |
lock |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMultiReaderParallelIterable(PI delegate,
java.util.concurrent.locks.ReadWriteLock lock) |
| 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) |
boolean |
allSatisfy(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) |
boolean |
anySatisfy(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) |
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) |
T |
detect(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) |
void |
forEach(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) |
<V> com.gs.collections.api.map.MapIterable<V,T> |
groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function) |
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) |
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() |
<T1> T1[] |
toArray(T1[] target) |
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 <A> com.gs.collections.api.ParallelIterable<A> |
wrap(com.gs.collections.api.ParallelIterable<A> wrapped) |
protected <A> com.gs.collections.api.list.ParallelListIterable<A> |
wrap(com.gs.collections.api.list.ParallelListIterable<A> wrapped) |
protected <A> com.gs.collections.api.set.ParallelUnsortedSetIterable<A> |
wrap(com.gs.collections.api.set.ParallelUnsortedSetIterable<A> wrapped) |
protected AbstractMultiReaderParallelIterable(PI delegate, java.util.concurrent.locks.ReadWriteLock lock)
protected <A> com.gs.collections.api.list.ParallelListIterable<A> wrap(com.gs.collections.api.list.ParallelListIterable<A> wrapped)
protected <A> com.gs.collections.api.set.ParallelUnsortedSetIterable<A> wrap(com.gs.collections.api.set.ParallelUnsortedSetIterable<A> wrapped)
protected <A> com.gs.collections.api.ParallelIterable<A> wrap(com.gs.collections.api.ParallelIterable<A> wrapped)
public void forEach(com.gs.collections.api.block.procedure.Procedure<? super T> procedure)
forEach 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 T detect(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
detect 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 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 boolean anySatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
anySatisfy 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 boolean allSatisfy(com.gs.collections.api.block.predicate.Predicate<? super T> predicate)
allSatisfy 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 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 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 <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 <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 java.lang.Object[] toArray()
toArray in interface com.gs.collections.api.ParallelIterable<T>public <T1> T1[] toArray(T1[] target)
toArray 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>public 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 <V> com.gs.collections.api.map.MapIterable<V,T> groupByUniqueKey(com.gs.collections.api.block.function.Function<? super T,? extends V> function)
groupByUniqueKey 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 <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 java.lang.String toString()
toString in class java.lang.Object