| Modifier and Type | Method and Description |
|---|---|
| public <KK, VV> ImmutableOrderedMap | aggregateBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Function2<? super VV, ? super V, ? extends VV> nonMutatingAggregator)
Redeclares as abstract: org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public default <K1, V1, V2> ImmutableOrderedMap | aggregateBy(Function<? super K, ? extends K1> keyFunction, Function<? super V, ? extends V1> valueFunction, Function0<? extends V2> zeroValueFactory, Function2<? super V2, ? super V1, ? extends V2> nonMutatingAggregator)
Overrides default org. Applies an aggregate function over the map grouping results into a map based on the specific key and value groupBy functions. |
| public <KK, VV> ImmutableOrderedMap | aggregateInPlaceBy(Function<? super V, ? extends KK> groupBy, Function0<? extends VV> zeroValueFactory, Procedure2<? super VV, ? super V> mutatingAggregator)
Redeclares as abstract: org. Applies an aggregate procedure over the iterable grouping results into a Map based on the specific groupBy function. |
| public <K2, V2> ImmutableOrderedMap | collect(Function2<? super K, ? super V, Pair<K2, V2>> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public <VV> ImmutableList | collect(Function<? super V, ? extends VV> 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 V> booleanFunction)
Redeclares org. Returns a new primitive |
| public ImmutableByteList | collectByte(ByteFunction<? super V> byteFunction)
Redeclares org. Returns a new primitive |
| public ImmutableCharList | collectChar(CharFunction<? super V> charFunction)
Redeclares org. Returns a new primitive |
| public ImmutableDoubleList | collectDouble(DoubleFunction<? super V> doubleFunction)
Redeclares org. Returns a new primitive |
| public ImmutableFloatList | collectFloat(FloatFunction<? super V> floatFunction)
Redeclares org. Returns a new primitive |
| public <V1> ImmutableList | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends V1> 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 V> intFunction)
Redeclares org. Returns a new primitive |
| public <R> ImmutableOrderedMap | collectKeysUnique(Function2<? super K, ? super V, ? extends R> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public ImmutableLongList | collectLong(LongFunction<? super V> longFunction)
Redeclares org. Returns a new primitive |
| public ImmutableShortList | collectShort(ShortFunction<? super V> shortFunction)
Redeclares org. Returns a new primitive |
| public <R> ImmutableOrderedMap | collectValues(Function2<? super K, ? super V, ? extends R> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public <P, V1> ImmutableList | collectWith(Function2<? super V, ? super P, ? extends V1> function, P parameter)
Redeclares org. Same as |
| public ImmutableList | distinct()
Redeclares org. Returns a new |
| public ImmutableOrderedMap | drop(int count)
Redeclares org. Returns an iterable after skipping the first |
| public ImmutableOrderedMap | dropWhile(Predicate<? super V> predicate)
Redeclares org. Returns the final elements that do not satisfy the Predicate. |
| public <V1> ImmutableList | flatCollect(Function<? super V, ? extends Iterable<V1>> function)
Redeclares org.
|
| public default <P, V1> ImmutableList | flatCollectWith(Function2<? super V, ? super P, ? extends Iterable<V1>> function, P parameter)
Overrides default org. Same as flatCollect, only with a Function2 that is passed an extra parameter. |
| public ImmutableListMultimap | flip()
Redeclares org. Given a map from Domain |
| public ImmutableOrderedMap | flipUniqueValues()
Redeclares org. Return the MapIterable that is obtained by flipping the direction of this map and making the associations from value to key. |
| public <V1> ImmutableListMultimap | groupBy(Function<? super V, ? extends V1> 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 <V1> ImmutableListMultimap | groupByEach(Function<? super V, ? extends Iterable<V1>> function)
Redeclares org. Similar to |
| public <V1> ImmutableOrderedMap | groupByUniqueKey(Function<? super V, ? extends V1> function)
Redeclares 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 ImmutableOrderedMap | newWithAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValuePairs)
Redeclares org.
|
| public ImmutableOrderedMap | newWithAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
Redeclares org.
|
| public ImmutableOrderedMap | newWithKeyValue(K key, V value)
Redeclares org.
|
| public ImmutableOrderedMap | newWithMap(Map<? extends K, ? extends V> map)
Redeclares org.
|
| public ImmutableOrderedMap | newWithMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Redeclares org.
|
| public ImmutableOrderedMap | newWithoutAllKeys(Iterable<? extends K> keys)
Redeclares org.
|
| public ImmutableOrderedMap | |
| public PartitionImmutableList | partition(Predicate<? super V> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionImmutableList | partitionWhile(Predicate<? super V> predicate)
Redeclares org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionImmutableList | partitionWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Filters a collection into a PartitionIterable based on the evaluation of the predicate. |
| public <KK> ImmutableOrderedMap | reduceBy(Function<? super V, ? extends KK> groupBy, Function2<? super V, ? super V, ? extends V> reduceFunction)
Redeclares as abstract: org. Applies an aggregate function over the iterable grouping results into a map based on the specific groupBy function. |
| public ImmutableOrderedMap | reject(Predicate2<? super K, ? super V> predicate)
Redeclares org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is false, that key and value are returned in a new map. |
| public ImmutableList | reject(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> ImmutableList | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public ImmutableOrderedMap | select(Predicate2<? super K, ? super V> predicate)
Redeclares org. For each key and value of the map the predicate is evaluated, if the result of the evaluation is true, that key and value are returned in a new map. |
| public ImmutableList | select(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> ImmutableList | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public <P> ImmutableList | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public <VV> ImmutableObjectDoubleMap | sumByDouble(Function<? super V, ? extends VV> groupBy, DoubleFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <VV> ImmutableObjectDoubleMap | sumByFloat(Function<? super V, ? extends VV> groupBy, FloatFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <VV> ImmutableObjectLongMap | sumByInt(Function<? super V, ? extends VV> groupBy, IntFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public <VV> ImmutableObjectLongMap | sumByLong(Function<? super V, ? extends VV> groupBy, LongFunction<? super V> function)
Redeclares org. Groups and sums the values using the two specified functions. |
| public ImmutableOrderedMap | take(int count)
Redeclares org. Returns the first |
| public ImmutableOrderedMap | takeWhile(Predicate<? super V> predicate)
Redeclares org. Returns the initial elements that satisfy the Predicate. |
| public ImmutableOrderedMap | tap(Procedure<? super V> procedure)
Redeclares org. Executes the Procedure for each value of the map and returns |
| public ImmutableOrderedMap | toReversed()
Redeclares org. Returns a new ReversibleIterable in reverse order. |
| public <S> ImmutableList | zip(Iterable<S> that)
Redeclares org. Returns a |
| public ImmutableList | zipWithIndex()
Redeclares org. Zips this |