Class AbstractMultiReaderParallelIterable<T,PI extends ParallelIterable<T>>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.parallel.AbstractMultiReaderParallelIterable<T,PI>
-
- All Implemented Interfaces:
ParallelIterable<T>
- Direct Known Subclasses:
MultiReaderParallelIterable,MultiReaderParallelListIterable,MultiReaderParallelUnsortedSetIterable
public abstract class AbstractMultiReaderParallelIterable<T,PI extends ParallelIterable<T>> extends Object implements ParallelIterable<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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)booleanallSatisfy(Predicate<? super T> predicate)<P> booleanallSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)booleananySatisfy(Predicate<? super T> predicate)<P> booleananySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)voidappendString(Appendable appendable)voidappendString(Appendable appendable, String separator)voidappendString(Appendable appendable, String start, String separator, String end)intcount(Predicate<? super T> predicate)<P> intcountWith(Predicate2<? super T,? super P> predicate, P parameter)Tdetect(Predicate<? super T> predicate)TdetectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)<P> TdetectWith(Predicate2<? super T,? super P> predicate, P parameter)<P> TdetectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)voidforEach(Procedure<? super T> procedure)<P> voidforEachWith(Procedure2<? super T,? super P> procedure, P parameter)<V> MapIterable<V,T>groupByUniqueKey(Function<? super T,? extends V> function)StringmakeString()StringmakeString(String separator)StringmakeString(String start, String separator, String end)StringmakeString(Function<? super T,Object> function, String start, String separator, String end)Tmax()Tmax(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TmaxBy(Function<? super T,? extends V> function)Tmin()Tmin(Comparator<? super T> comparator)<V extends Comparable<? super V>>
TminBy(Function<? super T,? extends V> function)booleannoneSatisfy(Predicate<? super T> predicate)<P> booleannoneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)doublesumOfDouble(DoubleFunction<? super T> function)doublesumOfFloat(FloatFunction<? super T> function)longsumOfInt(IntFunction<? super T> function)longsumOfLong(LongFunction<? super T> function)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>>
MutableSortedBag<T>toSortedBagBy(Function<? super T,? extends V> function)MutableList<T>toSortedList()MutableList<T>toSortedList(Comparator<? super T> comparator)<V extends Comparable<? super V>>
MutableList<T>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>>
MutableSortedSet<T>toSortedSetBy(Function<? super T,? extends V> function)StringtoString()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.ParallelIterable
asUnique, collect, collectIf, collectWith, flatCollect, groupBy, groupByEach, reject, rejectWith, select, selectInstancesOf, selectWith
-
-
-
-
Method Detail
-
forEach
public void forEach(Procedure<? super T> procedure)
- Specified by:
forEachin interfaceParallelIterable<T>
-
forEachWith
public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
- Specified by:
forEachWithin interfaceParallelIterable<T>
-
detect
public T detect(Predicate<? super T> predicate)
- Specified by:
detectin interfaceParallelIterable<T>
-
detectWith
public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
detectWithin interfaceParallelIterable<T>
-
detectIfNone
public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
- Specified by:
detectIfNonein interfaceParallelIterable<T>
-
detectWithIfNone
public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
- Specified by:
detectWithIfNonein interfaceParallelIterable<T>
-
count
public int count(Predicate<? super T> predicate)
- Specified by:
countin interfaceParallelIterable<T>
-
countWith
public <P> int countWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
countWithin interfaceParallelIterable<T>
-
anySatisfy
public boolean anySatisfy(Predicate<? super T> predicate)
- Specified by:
anySatisfyin interfaceParallelIterable<T>
-
anySatisfyWith
public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
anySatisfyWithin interfaceParallelIterable<T>
-
allSatisfy
public boolean allSatisfy(Predicate<? super T> predicate)
- Specified by:
allSatisfyin interfaceParallelIterable<T>
-
allSatisfyWith
public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
allSatisfyWithin interfaceParallelIterable<T>
-
noneSatisfy
public boolean noneSatisfy(Predicate<? super T> predicate)
- Specified by:
noneSatisfyin interfaceParallelIterable<T>
-
noneSatisfyWith
public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
noneSatisfyWithin interfaceParallelIterable<T>
-
toList
public MutableList<T> toList()
- Specified by:
toListin interfaceParallelIterable<T>
-
toSortedList
public MutableList<T> toSortedList()
- Specified by:
toSortedListin interfaceParallelIterable<T>
-
toSortedList
public MutableList<T> toSortedList(Comparator<? super T> comparator)
- Specified by:
toSortedListin interfaceParallelIterable<T>
-
toSortedListBy
public <V extends Comparable<? super V>> MutableList<T> toSortedListBy(Function<? super T,? extends V> function)
- Specified by:
toSortedListByin interfaceParallelIterable<T>
-
toSet
public MutableSet<T> toSet()
- Specified by:
toSetin interfaceParallelIterable<T>
-
toSortedSet
public MutableSortedSet<T> toSortedSet()
- Specified by:
toSortedSetin interfaceParallelIterable<T>
-
toSortedSet
public MutableSortedSet<T> toSortedSet(Comparator<? super T> comparator)
- Specified by:
toSortedSetin interfaceParallelIterable<T>
-
toSortedSetBy
public <V extends Comparable<? super V>> MutableSortedSet<T> toSortedSetBy(Function<? super T,? extends V> function)
- Specified by:
toSortedSetByin interfaceParallelIterable<T>
-
toBag
public MutableBag<T> toBag()
- Specified by:
toBagin interfaceParallelIterable<T>
-
toSortedBag
public MutableSortedBag<T> toSortedBag()
- Specified by:
toSortedBagin interfaceParallelIterable<T>
-
toSortedBag
public MutableSortedBag<T> toSortedBag(Comparator<? super T> comparator)
- Specified by:
toSortedBagin interfaceParallelIterable<T>
-
toSortedBagBy
public <V extends Comparable<? super V>> MutableSortedBag<T> toSortedBagBy(Function<? super T,? extends V> function)
- Specified by:
toSortedBagByin interfaceParallelIterable<T>
-
toMap
public <NK,NV> MutableMap<NK,NV> toMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
- Specified by:
toMapin interfaceParallelIterable<T>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
- Specified by:
toSortedMapin interfaceParallelIterable<T>
-
toSortedMap
public <NK,NV> MutableSortedMap<NK,NV> toSortedMap(Comparator<? super NK> comparator, Function<? super T,? extends NK> keyFunction, Function<? super T,? extends NV> valueFunction)
- Specified by:
toSortedMapin interfaceParallelIterable<T>
-
toArray
public Object[] toArray()
- Specified by:
toArrayin interfaceParallelIterable<T>
-
toArray
public <T1> T1[] toArray(T1[] target)
- Specified by:
toArrayin interfaceParallelIterable<T>
-
min
public T min(Comparator<? super T> comparator)
- Specified by:
minin interfaceParallelIterable<T>
-
max
public T max(Comparator<? super T> comparator)
- Specified by:
maxin interfaceParallelIterable<T>
-
min
public T min()
- Specified by:
minin interfaceParallelIterable<T>
-
max
public T max()
- Specified by:
maxin interfaceParallelIterable<T>
-
minBy
public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
- Specified by:
minByin interfaceParallelIterable<T>
-
maxBy
public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
- Specified by:
maxByin interfaceParallelIterable<T>
-
sumOfInt
public long sumOfInt(IntFunction<? super T> function)
- Specified by:
sumOfIntin interfaceParallelIterable<T>
-
sumOfFloat
public double sumOfFloat(FloatFunction<? super T> function)
- Specified by:
sumOfFloatin interfaceParallelIterable<T>
-
sumOfLong
public long sumOfLong(LongFunction<? super T> function)
- Specified by:
sumOfLongin interfaceParallelIterable<T>
-
sumOfDouble
public double sumOfDouble(DoubleFunction<? super T> function)
- Specified by:
sumOfDoublein interfaceParallelIterable<T>
-
makeString
public String makeString()
- Specified by:
makeStringin interfaceParallelIterable<T>
-
makeString
public String makeString(String separator)
- Specified by:
makeStringin interfaceParallelIterable<T>
-
makeString
public String makeString(String start, String separator, String end)
- Specified by:
makeStringin interfaceParallelIterable<T>
-
makeString
public String makeString(Function<? super T,Object> function, String start, String separator, String end)
- Specified by:
makeStringin interfaceParallelIterable<T>
-
appendString
public void appendString(Appendable appendable)
- Specified by:
appendStringin interfaceParallelIterable<T>
-
appendString
public void appendString(Appendable appendable, String separator)
- Specified by:
appendStringin interfaceParallelIterable<T>
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- Specified by:
appendStringin interfaceParallelIterable<T>
-
groupByUniqueKey
public <V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
- Specified by:
groupByUniqueKeyin interfaceParallelIterable<T>
-
aggregateInPlaceBy
public <K,V> MapIterable<K,V> aggregateInPlaceBy(Function<? super T,? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V,? super T> mutatingAggregator)
- Specified by:
aggregateInPlaceByin interfaceParallelIterable<T>
-
aggregateBy
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)
- Specified by:
aggregateByin interfaceParallelIterable<T>
-
-