MutableSortedBag.
| Modifier and Type | Method and Description |
|---|---|
| public <V> ImmutableList | 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 ImmutableBooleanList | collectBoolean(BooleanFunction<? super T> booleanFunction)
Redeclares org. Returns a new primitive |
| public ImmutableByteList | collectByte(ByteFunction<? super T> byteFunction)
Redeclares org. Returns a new primitive |
| public ImmutableCharList | collectChar(CharFunction<? super T> charFunction)
Redeclares org. Returns a new primitive |
| public ImmutableDoubleList | collectDouble(DoubleFunction<? super T> doubleFunction)
Redeclares org. Returns a new primitive |
| public ImmutableFloatList | collectFloat(FloatFunction<? super T> floatFunction)
Redeclares org. Returns a new primitive |
| public <V> ImmutableList | 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 ImmutableIntList | collectInt(IntFunction<? super T> intFunction)
Redeclares org. Returns a new primitive |
| public ImmutableLongList | collectLong(LongFunction<? super T> longFunction)
Redeclares org. Returns a new primitive |
| public ImmutableShortList | collectShort(ShortFunction<? super T> shortFunction)
Redeclares org. Returns a new primitive |
| public <P, V> ImmutableList | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Redeclares org. Same as |
| public default <V> ImmutableList | 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> ImmutableList | 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> ImmutableBag | 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> ImmutableBag | 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> ImmutableBag | 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 ImmutableSortedSet | distinct()
Redeclares org. Returns a new |
| public ImmutableSortedBag | drop(int count)
Redeclares org. Returns an iterable after skipping the first |
| public ImmutableSortedBag | dropWhile(Predicate<? super T> predicate)
Redeclares org. Returns the final elements that do not satisfy the Predicate. |
| public <V> ImmutableList | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Redeclares org.
|
| public default <P, V> ImmutableList | 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> ImmutableSortedBagMultimap | 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> ImmutableSortedBagMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Redeclares org. Similar to |
| public ImmutableSortedBag | newWith(T element)
Redeclares org. This method is similar to the |
| public ImmutableSortedBag | newWithAll(Iterable<? extends T> elements)
Redeclares org. This method is similar to the |
| public ImmutableSortedBag | newWithout(T element)
Redeclares org. This method is similar to the |
| public ImmutableSortedBag | newWithoutAll(Iterable<? extends T> elements)
Redeclares org. This method is similar to the |
| public PartitionImmutableSortedBag | partition(Predicate<? super T> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionImmutableSortedBag | 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 ImmutableSortedBag | reject(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> ImmutableSortedBag | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public ImmutableSortedBag | select(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public ImmutableSortedBag | selectByOccurrences(IntPredicate predicate)
Redeclares org. Returns all elements of the bag that have a number of occurrences that satisfy the predicate. |
| public default ImmutableSortedBag | selectDuplicates()
Overrides default org. Returns all elements of the bag that have more than one occurrence. |
| public <S> ImmutableSortedBag | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public default ImmutableSortedSet | selectUnique()
Implements org. Returns a set containing all elements of the bag that have exactly one occurrence. |
| public <P> ImmutableSortedBag | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public ImmutableSortedBag | take(int count)
Redeclares org. Returns the first |
| public ImmutableSortedBag | takeWhile(Predicate<? super T> predicate)
Redeclares org. Returns the initial elements that satisfy the Predicate. |
| public ImmutableSortedBag | 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 ImmutableSortedBag | toReversed()
Redeclares org. Returns a new ReversibleIterable in reverse order. |
| public <S> ImmutableList | zip(Iterable<S> that)
Redeclares org. Returns a |
| public ImmutableSortedSet | zipWithIndex()
Redeclares org. Zips this |