Class AbstractParallelSortedSetIterable<T,B extends SortedSetBatch<T>>
- java.lang.Object
-
- org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable<T,B>
-
- org.eclipse.collections.impl.lazy.parallel.set.sorted.AbstractParallelSortedSetIterable<T,B>
-
- All Implemented Interfaces:
ParallelIterable<T>
,ParallelSetIterable<T>
,ParallelSortedSetIterable<T>
- Direct Known Subclasses:
ImmutableTreeSet.SortedSetIterableParallelIterable
,ParallelSelectSortedSetIterable
public abstract class AbstractParallelSortedSetIterable<T,B extends SortedSetBatch<T>> extends AbstractParallelIterable<T,B> implements ParallelSortedSetIterable<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractParallelSortedSetIterable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParallelSortedSetIterable<T>
asUnique()
<V> ParallelListIterable<V>
collect(Function<? super T,? extends V> function)
Creates a parallel iterable for collecting elements from the current iterable.<V> ParallelListIterable<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>
ParallelListIterable<V>collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
<V> ParallelListIterable<V>
flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Creates a parallel flattening iterable for the current iterable.<V> SortedSetMultimap<V,T>
groupBy(Function<? super T,? extends V> function)
<V> SortedSetMultimap<V,T>
groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
<V> MapIterable<V,T>
groupByUniqueKey(Function<? super T,? extends V> function)
protected boolean
isOrdered()
ParallelSortedSetIterable<T>
reject(Predicate<? super T> predicate)
Creates a parallel iterable for rejecting elements from the current iterable.<P> ParallelSortedSetIterable<T>
rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
ParallelSortedSetIterable<T>
select(Predicate<? super T> predicate)
Creates a parallel iterable for selecting elements from the current iterable.<S> ParallelSortedSetIterable<S>
selectInstancesOf(java.lang.Class<S> clazz)
<P> ParallelSortedSetIterable<T>
selectWith(Predicate2<? super T,? super P> predicate, P parameter)
java.lang.Object[]
toArray()
<E> E[]
toArray(E[] array)
-
Methods inherited from class org.eclipse.collections.impl.lazy.parallel.AbstractParallelIterable
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, collectCombine, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, forEach, forEachWith, getBatchSize, getExecutorService, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, split, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.ParallelIterable
aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, forEach, forEachWith, makeString, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy
-
Methods inherited from interface org.eclipse.collections.api.set.sorted.ParallelSortedSetIterable
comparator
-
-
-
-
Method Detail
-
isOrdered
protected boolean isOrdered()
- Specified by:
isOrdered
in classAbstractParallelIterable<T,B extends SortedSetBatch<T>>
-
asUnique
public ParallelSortedSetIterable<T> asUnique()
- Specified by:
asUnique
in interfaceParallelIterable<T>
- Specified by:
asUnique
in interfaceParallelSetIterable<T>
- Specified by:
asUnique
in interfaceParallelSortedSetIterable<T>
-
select
public ParallelSortedSetIterable<T> select(Predicate<? super T> predicate)
Description copied from interface:ParallelSortedSetIterable
Creates a parallel iterable for selecting elements from the current iterable.- Specified by:
select
in interfaceParallelIterable<T>
- Specified by:
select
in interfaceParallelSetIterable<T>
- Specified by:
select
in interfaceParallelSortedSetIterable<T>
-
selectWith
public <P> ParallelSortedSetIterable<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
selectWith
in interfaceParallelIterable<T>
- Specified by:
selectWith
in interfaceParallelSetIterable<T>
- Specified by:
selectWith
in interfaceParallelSortedSetIterable<T>
-
selectInstancesOf
public <S> ParallelSortedSetIterable<S> selectInstancesOf(java.lang.Class<S> clazz)
- Specified by:
selectInstancesOf
in interfaceParallelIterable<T>
- Specified by:
selectInstancesOf
in interfaceParallelSetIterable<T>
- Specified by:
selectInstancesOf
in interfaceParallelSortedSetIterable<T>
-
reject
public ParallelSortedSetIterable<T> reject(Predicate<? super T> predicate)
Description copied from interface:ParallelSortedSetIterable
Creates a parallel iterable for rejecting elements from the current iterable.- Specified by:
reject
in interfaceParallelIterable<T>
- Specified by:
reject
in interfaceParallelSetIterable<T>
- Specified by:
reject
in interfaceParallelSortedSetIterable<T>
-
rejectWith
public <P> ParallelSortedSetIterable<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
- Specified by:
rejectWith
in interfaceParallelIterable<T>
- Specified by:
rejectWith
in interfaceParallelSetIterable<T>
- Specified by:
rejectWith
in interfaceParallelSortedSetIterable<T>
-
collect
public <V> ParallelListIterable<V> collect(Function<? super T,? extends V> function)
Description copied from interface:ParallelSortedSetIterable
Creates a parallel iterable for collecting elements from the current iterable.- Specified by:
collect
in interfaceParallelIterable<T>
- Specified by:
collect
in interfaceParallelSortedSetIterable<T>
-
collectWith
public <P,V> ParallelListIterable<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
- Specified by:
collectWith
in interfaceParallelIterable<T>
- Specified by:
collectWith
in interfaceParallelSortedSetIterable<T>
-
collectIf
public <V> ParallelListIterable<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
Description copied from interface:ParallelSortedSetIterable
Creates a parallel iterable for selecting and collecting elements from the current iterable.- Specified by:
collectIf
in interfaceParallelIterable<T>
- Specified by:
collectIf
in interfaceParallelSortedSetIterable<T>
-
flatCollect
public <V> ParallelListIterable<V> flatCollect(Function<? super T,? extends java.lang.Iterable<V>> function)
Description copied from interface:ParallelSortedSetIterable
Creates a parallel flattening iterable for the current iterable.- Specified by:
flatCollect
in interfaceParallelIterable<T>
- Specified by:
flatCollect
in interfaceParallelSortedSetIterable<T>
-
groupBy
public <V> SortedSetMultimap<V,T> groupBy(Function<? super T,? extends V> function)
- Specified by:
groupBy
in interfaceParallelIterable<T>
- Specified by:
groupBy
in interfaceParallelSetIterable<T>
- Specified by:
groupBy
in interfaceParallelSortedSetIterable<T>
-
groupByEach
public <V> SortedSetMultimap<V,T> groupByEach(Function<? super T,? extends java.lang.Iterable<V>> function)
- Specified by:
groupByEach
in interfaceParallelIterable<T>
- Specified by:
groupByEach
in interfaceParallelSetIterable<T>
- Specified by:
groupByEach
in interfaceParallelSortedSetIterable<T>
-
groupByUniqueKey
public <V> MapIterable<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
- Specified by:
groupByUniqueKey
in interfaceParallelIterable<T>
- Overrides:
groupByUniqueKey
in classAbstractParallelIterable<T,B extends SortedSetBatch<T>>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfaceParallelIterable<T>
-
toArray
public <E> E[] toArray(E[] array)
- Specified by:
toArray
in interfaceParallelIterable<T>
- Overrides:
toArray
in classAbstractParallelIterable<T,B extends SortedSetBatch<T>>
-
-