| Modifier and Type | Method and Description |
|---|---|
| public default <K, V> ImmutableMap | aggregateBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Function2<? super V, ? super T, ? extends V> nonMutatingAggregator)
Overrides default org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public default <K, V> ImmutableMap | aggregateInPlaceBy(Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator)
Overrides default org. Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function. |
| public Collection | |
| public <V> ImmutableCollection | 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 ImmutableBooleanCollection | collectBoolean(BooleanFunction<? super T> booleanFunction)
Redeclares org. Returns a new primitive |
| public ImmutableByteCollection | collectByte(ByteFunction<? super T> byteFunction)
Redeclares org. Returns a new primitive |
| public ImmutableCharCollection | collectChar(CharFunction<? super T> charFunction)
Redeclares org. Returns a new primitive |
| public ImmutableDoubleCollection | collectDouble(DoubleFunction<? super T> doubleFunction)
Redeclares org. Returns a new primitive |
| public ImmutableFloatCollection | collectFloat(FloatFunction<? super T> floatFunction)
Redeclares org. Returns a new primitive |
| public <V> ImmutableCollection | 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 ImmutableIntCollection | collectInt(IntFunction<? super T> intFunction)
Redeclares org. Returns a new primitive |
| public ImmutableLongCollection | collectLong(LongFunction<? super T> longFunction)
Redeclares org. Returns a new primitive |
| public ImmutableShortCollection | collectShort(ShortFunction<? super T> shortFunction)
Redeclares org. Returns a new primitive |
| public <P, V> ImmutableCollection | collectWith(Function2<? super T, ? super P, ? extends V> function, P parameter)
Redeclares org. Same as |
| 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 <V> ImmutableCollection | flatCollect(Function<? super T, ? extends Iterable<V>> function)
Redeclares org.
|
| public default <P, V> ImmutableCollection | 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> ImmutableMultimap | 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> ImmutableMultimap | groupByEach(Function<? super T, ? extends Iterable<V>> function)
Redeclares org. Similar to |
| public default <V> ImmutableMap | groupByUniqueKey(Function<? super T, ? extends V> function)
Implements org. For each element of the iterable, the function is evaluated, and the results of these evaluations are collected into a new map, where the transformed value is the key. |
| public ImmutableCollection | newWith(T element)
This method is similar to the |
| public ImmutableCollection | newWithAll(Iterable<? extends T> elements)
This method is similar to the |
| public ImmutableCollection | newWithout(T element)
This method is similar to the |
| public ImmutableCollection | newWithoutAll(Iterable<? extends T> elements)
This method is similar to the |
| public default Stream | |
| public PartitionImmutableCollection | partition(Predicate<? super T> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public <P> PartitionImmutableCollection | 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 default <K> ImmutableMapIterable | reduceBy(Function<? super T, ? extends K> groupBy, Function2<? super T, ? super T, ? extends T> reduceFunction)
Overrides default org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public ImmutableCollection | reject(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> ImmutableCollection | rejectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public ImmutableCollection | select(Predicate<? super T> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> ImmutableCollection | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public <P> ImmutableCollection | selectWith(Predicate2<? super T, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public default Spliterator | spliterator()
Overrides default java. Creates a |
| public default Stream | |
| public <V> ImmutableObjectDoubleMap | sumByDouble(Function<? super T, ? extends V> groupBy, DoubleFunction<? super T> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectDoubleMap | sumByFloat(Function<? super T, ? extends V> groupBy, FloatFunction<? super T> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectLongMap | sumByInt(Function<? super T, ? extends V> groupBy, IntFunction<? super T> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <V> ImmutableObjectLongMap | sumByLong(Function<? super T, ? extends V> groupBy, LongFunction<? super T> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public ImmutableCollection | tap(Procedure<? super T> procedure)
Redeclares org. Executes the Procedure for each element in the iterable and returns |
| public <S> ImmutableCollection | zip(Iterable<S> that)
Redeclares org. Returns a |
| public ImmutableCollection | zipWithIndex()
Redeclares org. Zips this |