| Modifier and Type | Method and Description |
|---|---|
| public MutableSortedBag | asSynchronized()
Redeclares org. Returns a synchronized wrapper backed by this collection. |
| public MutableSortedBag | Returns: an unmodifiable view of this setRedeclares org. Returns an unmodifiable view of the set. |
| public MutableSortedBag | |
| public <V> MutableList | collect(Function<? super T, ? extends V> function)
Redeclares org. 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)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableByteList | collectByte(ByteFunction<? super T> byteFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableCharList | collectChar(CharFunction<? super T> charFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableDoubleList | collectDouble(DoubleFunction<? super T> doubleFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableFloatList | collectFloat(FloatFunction<? super T> floatFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public <V> MutableList | collectIf(Predicate<? super T> predicate, Function<? super T, ? extends V> function)
Redeclares org. 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)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableLongList | collectLong(LongFunction<? super T> longFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public MutableShortList | collectShort(ShortFunction<? super T> shortFunction)
Redeclares org. Redeclares as abstract: org. Returns a new primitive |
| public <P, V> MutableList | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Redeclares org. Same as |
| public default <V> MutableList | collectWithIndex(ObjectIntToObjectFunction<? super T, ? extends V> function)
Overrides default org. Returns a new OrderedIterable using results obtained by applying the specified function to each element and its corresponding index. |
| public <V> MutableList | collectWithOccurrences(ObjectIntToObjectFunction<? super T, ? extends V> function)
Redeclares org. Iterates over the unique elements and their occurrences and collects the results of applying the specified function. |
| public default <V> MutableBag | countBy(Function<? super T, ? extends V> function)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public default <V> MutableBag | countByEach(Function<? super T, ? extends Iterable<V>> function)
Overrides default org. This method will count the number of occurrences of each value calculated by applying the function to each element of the collection. |
| public default <V, P> MutableBag | countByWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Overrides default org. 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 MutableSortedSet | distinct()
Redeclares org. Returns a new |
| public MutableSortedBag | drop(int count)
Redeclares org. Returns an iterable after skipping the first |
| public MutableSortedBag | dropWhile(Predicate<? super T> predicate)
Redeclares org. Returns the final elements that do not satisfy the Predicate. |
| public <V> MutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Redeclares org.
|
| public default <P, V> MutableList | flatCollectWith(Function2<? super T, ? super P, ? extends Iterable<V>> function, P parameter)
Overrides default org. Same as flatCollect, only with a Function2 that is passed an extra parameter. |
| public <V> MutableSortedBagMultimap | groupBy(Function<? super T, ? extends V> function)
Redeclares org. For each element of the iterable, the function is evaluated and the results of these evaluations are collected into a new multimap, where the transformed value is the key and the original values are added to the same (or similar) species of collection as the source iterable. |
| public <V> MutableSortedBagMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Redeclares org. Similar to |
| public MutableSortedBag | newEmpty()
Redeclares org. Creates a new empty mutable version of the same collection type. |
| public PartitionMutableSortedBag | partition(Predicate<? super T> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableSortedBag | partitionWhile(Predicate<? super T> predicate)
Redeclares org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionMutableSortedBag | partitionWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public MutableSortedBag | reject(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> MutableSortedBag | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public MutableSortedBag | select(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public MutableSortedBag | selectByOccurrences(IntPredicate predicate)
Redeclares org. Returns all elements of the bag that have a number of occurrences that satisfy the predicate. |
| public default MutableSortedBag | selectDuplicates()
Overrides default org. Returns all elements of the bag that have more than one occurrence. |
| public <S> MutableSortedBag | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public default MutableSortedSet | selectUnique()
Implements org. Returns a set containing all elements of the bag that have exactly one occurrence. |
| public <P> MutableSortedBag | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public MutableSortedBag | take(int count)
Redeclares org. Returns the first |
| public MutableSortedBag | takeWhile(Predicate<? super T> predicate)
Redeclares org. Returns the initial elements that satisfy the Predicate. |
| public MutableSortedBag | tap(Procedure<? super T> procedure)
Redeclares org. Executes the Procedure for each element in the iterable and returns |
| public default ImmutableSortedBag | toImmutableSortedBag()
Overrides default org. Converts the RichIterable to the default ImmutableSortedBag implementation. |
| public MutableSortedMap | toMapOfItemToCount()
Redeclares org. Converts the Bag to a Map of the Item type to its count as an Integer. |
| public MutableSortedBag | toReversed()
Redeclares org. Returns a new ReversibleIterable in reverse order. |
| public default MutableSortedBag | with(T element)
Overrides default org. This method allows mutable and fixed size collections the ability to add elements to their existing elements. |
| public default MutableSortedBag | withAll(Iterable<? extends T> elements)
Overrides default org. This method allows mutable and fixed size collections the ability to add multiple elements to their existing elements. |
| public default MutableSortedBag | withOccurrences(T element, int occurrences)
Overrides default org.
|
| public default MutableSortedBag | without(T element)
Overrides default org. This method allows mutable and fixed size collections the ability to remove elements from their existing elements. |
| public default MutableSortedBag | withoutAll(Iterable<? extends T> elements)
Overrides default org. This method allows mutable and fixed size collections the ability to remove multiple elements from their existing elements. |
| public default MutableSortedBag | withoutOccurrences(T element, int occurrences)
Overrides default org.
|
| public <S> MutableList | zip(Iterable<S> that)
Redeclares org. Returns a |
| public MutableSortedSet | zipWithIndex()
Redeclares org. Zips this |