Top Constructors Methods
org.eclipse.collections.impl.bag.sorted.mutable

public abstract Class AbstractMutableSortedBag<T>

extends AbstractMutableBagIterable<T>
implements MutableSortedBag<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.bag.sorted.MutableSortedBag, java.lang.Cloneable, org.eclipse.collections.api.bag.MutableBagIterable, org.eclipse.collections.api.collection.MutableCollection, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.InternalIterable, java.lang.Iterable, java.util.Collection, org.eclipse.collections.api.bag.Bag, org.eclipse.collections.api.bag.sorted.SortedBag, org.eclipse.collections.api.ordered.ReversibleIterable, org.eclipse.collections.api.ordered.OrderedIterable, org.eclipse.collections.api.ordered.SortedIterable, java.lang.Comparable
Known Direct Subclasses
org.eclipse.collections.impl.bag.sorted.mutable.TreeBag
Imports
java.util.Collection, .Comparator, java.util.concurrent.ExecutorService, org.eclipse.collections.api.RichIterable, org.eclipse.collections.api.annotation.Beta, org.eclipse.collections.api.bag.MutableBag, org.eclipse.collections.api.bag.sorted.ImmutableSortedBag, .MutableSortedBag, .ParallelSortedBag, org.eclipse.collections.api.block.function.Function, .Function2, org.eclipse.collections.api.block.function.primitive.BooleanFunction, .ByteFunction, .CharFunction, .DoubleFunction, .FloatFunction, .IntFunction, .LongFunction, .ObjectIntToObjectFunction, .ShortFunction, org.eclipse.collections.api.block.predicate.Predicate, .Predicate2, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.api.factory.Bags, .Lists, .SortedBags, org.eclipse.collections.api.factory.primitive.BooleanLists, .ByteLists, .CharLists, .DoubleLists, .FloatLists, .IntLists, .LongLists, .ShortLists, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.MutableBooleanList, .MutableByteList, .MutableCharList, .MutableDoubleList, .MutableFloatList, .MutableIntList, .MutableLongList, .MutableShortList, org.eclipse.collections.api.map.sorted.MutableSortedMap, org.eclipse.collections.api.partition.bag.sorted.PartitionMutableSortedBag, org.eclipse.collections.api.tuple.Pair, org.eclipse.collections.impl.bag.mutable.AbstractMutableBagIterable, org.eclipse.collections.impl.list.mutable.FastList, org.eclipse.collections.impl.map.sorted.mutable.TreeSortedMap, org.eclipse.collections.impl.partition.bag.sorted.PartitionTreeBag, org.eclipse.collections.impl.utility.Iterate, org.eclipse.collections.impl.utility.internal.IterableIterate

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ParallelSortedBag<T>
asParallel(ExecutorService executorService, int batchSize)

public MutableSortedBag<T>
public UnmodifiableSortedBag<T>
public abstract MutableSortedBag<T>
clone()

Redeclares org.eclipse.collections.api.bag.sorted.MutableSortedBag.clone.

Overrides java.lang.Object.clone.

Creates and returns a copy of this object.

public <V> MutableList<V>
collect(Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collect, org.eclipse.collections.api.RichIterable.collect, org.eclipse.collections.api.collection.MutableCollection.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public MutableBooleanList
collectBoolean(BooleanFunction<? super T> booleanFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectBoolean.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectBoolean, org.eclipse.collections.api.RichIterable.collectBoolean.

Returns a new primitive boolean iterable with the results of applying the specified function on each element of the source collection.

public MutableByteList
collectByte(ByteFunction<? super T> byteFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectByte.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectByte, org.eclipse.collections.api.RichIterable.collectByte.

Returns a new primitive byte iterable with the results of applying the specified function on each element of the source collection.

public MutableCharList
collectChar(CharFunction<? super T> charFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectChar.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectChar, org.eclipse.collections.api.RichIterable.collectChar.

Returns a new primitive char iterable with the results of applying the specified function on each element of the source collection.

public MutableDoubleList
collectDouble(DoubleFunction<? super T> doubleFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectDouble.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectDouble, org.eclipse.collections.api.RichIterable.collectDouble.

Returns a new primitive double iterable with the results of applying the specified function on each element of the source collection.

public MutableFloatList
collectFloat(FloatFunction<? super T> floatFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectFloat.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectFloat, org.eclipse.collections.api.RichIterable.collectFloat.

Returns a new primitive float iterable with the results of applying the specified function on each element of the source collection.

public <V> MutableList<V>
collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectIf, org.eclipse.collections.api.RichIterable.collectIf, org.eclipse.collections.api.collection.MutableCollection.collectIf.

Returns a new collection with the results of applying the specified function on each element of the source collection, but only for those elements which return true upon evaluation of the predicate.

public MutableIntList
collectInt(IntFunction<? super T> intFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectInt.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectInt, org.eclipse.collections.api.RichIterable.collectInt.

Returns a new primitive int iterable with the results of applying the specified function on each element of the source collection.

public MutableLongList
collectLong(LongFunction<? super T> longFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectLong.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectLong, org.eclipse.collections.api.RichIterable.collectLong.

Returns a new primitive long iterable with the results of applying the specified function on each element of the source collection.

public MutableShortList
collectShort(ShortFunction<? super T> shortFunction)

Overrides default org.eclipse.collections.api.collection.MutableCollection.collectShort.

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectShort, org.eclipse.collections.api.RichIterable.collectShort.

Returns a new primitive short iterable with the results of applying the specified function on each element of the source collection.

public <P, V> MutableList<V>
collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectWith, org.eclipse.collections.api.RichIterable.collectWith, org.eclipse.collections.api.collection.MutableCollection.collectWith.

Same as collect(Function) with a Function2 and specified parameter which is passed to the block.

public <V> MutableList<V>
collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function)

Overrides default org.eclipse.collections.api.bag.sorted.MutableSortedBag.collectWithIndex.

Returns a new OrderedIterable using results obtained by applying the specified function to each element and its corresponding index.

public <V, R extends Collection<V>> R
collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function, R target)

Overrides default org.eclipse.collections.api.ordered.OrderedIterable.collectWithIndex.

Adds elements to the target Collection using results obtained by applying the specified function to each element and its corresponding index.

public <V> MutableList<V>
public <V> MutableBag<V>
countBy(Function<? super T, ? extends V> function)

Overrides org.eclipse.collections.impl.bag.mutable.AbstractMutableBagIterable.countBy.

Overrides default org.eclipse.collections.api.bag.sorted.MutableSortedBag.countBy, org.eclipse.collections.api.RichIterable.countBy, org.eclipse.collections.api.collection.MutableCollection.countBy.

This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.

public <V> MutableBag<V>
countByEach(Function<? super T, ? extends Iterable<V>> function)

Overrides org.eclipse.collections.impl.bag.mutable.AbstractMutableBagIterable.countByEach.

Overrides default org.eclipse.collections.api.bag.sorted.MutableSortedBag.countByEach, org.eclipse.collections.api.RichIterable.countByEach, org.eclipse.collections.api.collection.MutableCollection.countByEach.

This method will count the number of occurrences of each value calculated by applying the function to each element of the collection.

public <V, P> MutableBag<V>
countByWith(Function2<? super T, ? super P, ? extends V> function, P parameter)

Overrides org.eclipse.collections.impl.bag.mutable.AbstractMutableBagIterable.countByWith.

Overrides default org.eclipse.collections.api.bag.sorted.MutableSortedBag.countByWith, org.eclipse.collections.api.RichIterable.countByWith, org.eclipse.collections.api.collection.MutableCollection.countByWith.

This method will count the number of occurrences of each value calculated by applying the function to each element of the collection with the specified parameter as the second argument.

public int
detectLastIndex(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.ordered.ReversibleIterable.detectLastIndex.

Returns the index of the last element of the ReversibleIterable for which the predicate evaluates to true.

public MutableSortedBag<T>
dropWhile(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.dropWhile.

Returns the final elements that do not satisfy the Predicate.

public <V> MutableList<V>
public PartitionMutableSortedBag<T>
public PartitionMutableSortedBag<T>
partitionWhile(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.partitionWhile.

Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements.

public <P> PartitionMutableSortedBag<T>
public MutableSortedBag<T>
public <P> MutableSortedBag<T>
public MutableSortedBag<T>
public <S> MutableSortedBag<S>
public <P> MutableSortedBag<T>
public MutableSortedBag<T>
takeWhile(Predicate<? super T> predicate)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.takeWhile.

Returns the initial elements that satisfy the Predicate.

public MutableSortedBag<T>
public ImmutableSortedBag<T>
public MutableSortedMap<T, Integer>
public MutableSortedBag<T>
toReversed()

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.toReversed.

Returns a new ReversibleIterable in reverse order.

public <S> MutableList<Pair<T, S>>
zip(Iterable<S> that)

Implements org.eclipse.collections.api.bag.sorted.MutableSortedBag.zip, org.eclipse.collections.api.RichIterable.zip, org.eclipse.collections.api.collection.MutableCollection.zip.

Returns a RichIterable formed from this RichIterable and another RichIterable by combining corresponding elements in pairs.

Inherited from org.eclipse.collections.impl.bag.mutable.AbstractMutableBagIterable:
addAlladdAllBagaddAllIterableallSatisfyallSatisfyWithanySatisfyanySatisfyWithbottomOccurrenceschunkdetectdetectIfNonedetectOptionaldetectWithdetectWithIfNonedetectWithOptionalgetFirstgetKeysViewgetLastgroupByUniqueKeymaxmaxmaxByminminminBynoneSatisfynoneSatisfyWithremoveAllretainAllretainAllIterableselectAndRejectWithsumByDoublesumByFloatsumByIntsumByLongtopOccurrences