| Modifier and Type | Method and Description |
|---|---|
| public MutableSortedMap | asSynchronized()
Redeclares org. Returns a synchronized wrapper backed by this map. |
| public MutableSortedMap | asUnmodifiable()
Redeclares org. Returns an unmodifiable view of this map. |
| public MutableSortedMap | |
| public <K2, V2> MutableMap | 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 <R> MutableList | collect(Function<? super V, ? extends R> 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 V> booleanFunction)
Redeclares org. Returns a new primitive |
| public MutableByteList | collectByte(ByteFunction<? super V> byteFunction)
Redeclares org. Returns a new primitive |
| public MutableCharList | collectChar(CharFunction<? super V> charFunction)
Redeclares org. Returns a new primitive |
| public MutableDoubleList | collectDouble(DoubleFunction<? super V> doubleFunction)
Redeclares org. Returns a new primitive |
| public MutableFloatList | collectFloat(FloatFunction<? super V> floatFunction)
Redeclares org. Returns a new primitive |
| public <R> MutableList | collectIf(Predicate<? super V> predicate, Function<? super V, ? extends R> 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 V> intFunction)
Redeclares org. Returns a new primitive |
| public <E> MutableSortedMap | collectKeysAndValues(Iterable<E> iterable, Function<? super E, ? extends K> keyFunction, Function<? super E, ? extends V> valueFunction)
Adds all the entries derived from |
| public <R> MutableOrderedMap | collectKeysUnique(Function2<? super K, ? super V, ? extends R> function)
Redeclares org. For each key and value of the map the function is evaluated. |
| public MutableLongList | collectLong(LongFunction<? super V> longFunction)
Redeclares org. Returns a new primitive |
| public MutableShortList | collectShort(ShortFunction<? super V> shortFunction)
Redeclares org. Returns a new primitive |
| public <R> MutableSortedMap | 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, VV> MutableList | collectWith(Function2<? super V, ? super P, ? extends VV> function, P parameter)
Redeclares org. Same as |
| public default <R> MutableList | collectWithIndex(ObjectIntToObjectFunction<? super V, ? extends R> function)
Overrides default org. Returns a new OrderedIterable using results obtained by applying the specified function to each element and its corresponding index. |
| public MutableList | distinct()
Redeclares org. Returns a new |
| public MutableSortedMap | drop(int count)
Redeclares org. Returns an iterable after skipping the first |
| public MutableSortedMap | dropWhile(Predicate<? super V> predicate)
Redeclares org. Returns the final elements that do not satisfy the Predicate. |
| public MutableSet | entrySet()
Redeclares java. Returns a |
| public <R> MutableList | flatCollect(Function<? super V, ? extends Iterable<R>> function)
Redeclares org.
|
| public default <P, R> MutableList | flatCollectWith(Function2<? super V, ? super P, ? extends Iterable<R>> function, P parameter)
Overrides default org. Same as flatCollect, only with a Function2 that is passed an extra parameter. |
| public MutableSortedSetMultimap | flip()
Redeclares org. Given a map from Domain |
| public <P> V | getIfAbsentPutWith(K key, Function<? super P, ? extends V> function, P parameter)
Redeclares org. Return the value in the Map that corresponds to the specified key, or if there is no value at the key, return the result of evaluating the specified one argument Function using the specified parameter, and put that value in the map at the specified key. |
| public <VV> MutableListMultimap | groupBy(Function<? super V, ? extends VV> 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 <VV> MutableListMultimap | groupByEach(Function<? super V, ? extends Iterable<VV>> function)
Redeclares org. Similar to |
| public default <VV> MutableMap | groupByUniqueKey(Function<? super V, ? extends VV> 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 MutableSortedMap | headMap(K toKey)
Redeclares java. Returns a view of the portion of this map whose keys are
strictly less than |
| public MutableSet | keySet()
Redeclares java. The underlying set for the keys is sorted in ascending order according to their natural ordering or a custom comparator. |
| public MutableSortedMap | newEmpty()
Redeclares org. Creates a new instance of the same type with the same internal Comparator. |
| public PartitionMutableList | partition(Predicate<? super V> predicate)
Redeclares org. Filters a collection into a PartitionedIterable based on the evaluation of the predicate. |
| public PartitionMutableList | partitionWhile(Predicate<? super V> predicate)
Redeclares org. Returns a Partition of the initial elements that satisfy the Predicate and the remaining elements. |
| public <P> PartitionMutableList | 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 MutableSortedMap | 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 MutableList | reject(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return false when evaluating of the predicate. |
| public <P> MutableList | rejectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public MutableSortedMap | 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 MutableList | select(Predicate<? super V> predicate)
Redeclares org. Returns all elements of the source collection that return true when evaluating the predicate. |
| public <S> MutableList | selectInstancesOf(Class<S> clazz)
Redeclares org. Returns all elements of the source collection that are instances of the Class |
| public <P> MutableList | selectWith(Predicate2<? super V, ? super P> predicate, P parameter)
Redeclares org. Similar to |
| public MutableSortedMap | subMap(K fromKey, K toKey)
Redeclares java. Returns a view of the portion of this map whose keys range from
|
| public MutableSortedMap | tailMap(K fromKey)
Redeclares java. Returns a view of the portion of this map whose keys are
greater than or equal to |
| public MutableSortedMap | take(int count)
Redeclares org. Returns the first |
| public MutableSortedMap | takeWhile(Predicate<? super V> predicate)
Redeclares org. Returns the initial elements that satisfy the Predicate. |
| public MutableSortedMap | tap(Procedure<? super V> procedure)
Redeclares org. Executes the Procedure for each value of the map and returns |
| public MutableSortedMap | toReversed()
Redeclares org. Returns a new ReversibleIterable in reverse order. |
| public MutableCollection | values()
Redeclares java. Returns a |
| public default MutableSortedMap | with(Pair<K, V>... pairs)
Deprecated
in 6.0 Use
withAllKeyValueArguments(Pair[]) instead. Inlineable.
|
| public MutableSortedMap | withAllKeyValueArguments(Pair<? extends K, ? extends V>... keyValuePairs)
Redeclares org. Convenience var-args version of withAllKeyValues |
| public MutableSortedMap | withAllKeyValues(Iterable<? extends Pair<? extends K, ? extends V>> keyValues)
Redeclares org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public MutableSortedMap | withKeyValue(K key, V value)
Redeclares org. This method allows mutable, fixed size, and immutable maps the ability to add elements to their existing elements. |
| public default MutableSortedMap | withMap(Map<? extends K, ? extends V> map)
Overrides default org. Similar to |
| public default MutableSortedMap | withMapIterable(MapIterable<? extends K, ? extends V> mapIterable)
Overrides default org.
|
| public MutableSortedMap | withoutAllKeys(Iterable<? extends K> keys)
Redeclares org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public MutableSortedMap | withoutKey(K key)
Redeclares org. This method allows mutable, fixed size, and immutable maps the ability to remove elements from their existing elements. |
| public <S> MutableList | zip(Iterable<S> that)
Redeclares org. Returns a |
| public MutableList | zipWithIndex()
Redeclares org. Zips this |