SortedMultimap interface.
| Modifier and Type | Field and Description |
|---|---|
| public static final long |
| Modifier and Type | Method and Description |
|---|---|
| public SortedMultimap | distinct()
Redeclares io. Returns a new version of this which contains no duplicates. |
| public SortedMultimap | distinctBy(Comparator<? super Tuple2<K, V>>
A comparator comparator)Redeclares io. Returns a new version of this which contains no duplicates. |
| public <U> SortedMultimap | distinctBy(Function<? super Tuple2<K, V>, ? extends U>
A key extractor keyExtractor)Redeclares io. Returns a new version of this which contains no duplicates. |
| public SortedMultimap | drop(int
The number of elements to drop. n)Redeclares io. Drops the first n elements of this or all elements, if this length < n. |
| public SortedMultimap | dropRight(int
The number of elements to drop. n)Redeclares io. Drops the last n elements of this or all elements, if this length < n. |
| public SortedMultimap | dropUntil(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Redeclares io. Drops elements until the predicate holds for the current element. |
| public SortedMultimap | dropWhile(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Redeclares io. Drops elements while the predicate holds for the current element. |
| public SortedMultimap | filter(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Redeclares io. Returns a new Multimap consisting of all elements which satisfy the given predicate. |
| public SortedMultimap | filter(Predicate<? super Tuple2<K, V>>
A predicate predicate)Redeclares io. Returns a new traversable consisting of all elements which satisfy the given predicate. |
| public SortedMultimap | filterKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Redeclares io. Returns a new Multimap consisting of all elements with keys which satisfy the given predicate. |
| public SortedMultimap | filterValues(Predicate<? super V>
the predicate used to test values of elements predicate)Redeclares io. Returns a new Multimap consisting of all elements with values which satisfy the given predicate. |
| public <C> Map | groupBy(Function<? super Tuple2<K, V>, ? extends C>
A function which classifies elements into classes classifier)Redeclares io. Groups this elements by classifying the elements. |
| public Iterator | grouped(int
a positive block size size)Redeclares io. Groups this |
| public SortedMultimap | init()
Redeclares io. Dual of tail(), returning all elements except the last. |
| public Option | initOption()
Redeclares io. Dual of tailOption(), returning all elements except the last as |
| public SortedSet | |
| public SortedMultimap | merge(Multimap<? extends K, ? extends V>
the other multimap that)Redeclares io. Creates a new multimap which by merging the entries of |
| public <K2 extends K, V2 extends V> SortedMultimap | merge(Multimap<K2, V2>
the other multimap that, BiFunction<Traversable<V>, Traversable<V2>, Traversable<V>> the collision resolution function collisionResolution)Redeclares io. Creates a new multimap which by merging the entries of |
| public static < Key type K, Value type V> SortedMultimap | Returns: the givenmultimap instance as narrowed type SortedMultimap<K, V>.A map)SortedMultimap.Narrows a widened |
| public SortedMultimap | orElse(Iterable<? extends Tuple2<K, V>>
An alternative other)TraversableRedeclares io. Returns this |
| public SortedMultimap | orElse(Supplier<? extends Iterable<? extends Tuple2<K, V>>>
An alternative supplier)Traversable supplierRedeclares io. Returns this |
| public Tuple2 | partition(Predicate<? super Tuple2<K, V>>
A predicate which classifies an element if it is in the first or the second traversable. predicate)Redeclares io. Creates a partition of this |
| public SortedMultimap | peek(Consumer<? super Tuple2<K, V>>
The action that will be performed on the element(s). action)Redeclares io. Performs the given |
| public SortedMultimap | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Redeclares io. Associates the specified value with the specified key in this multimap. |
| public SortedMultimap | put(Tuple2<? extends K, ? extends V>
A Tuple2 containing the key and value entry)Redeclares io. Convenience method for |
| public SortedMultimap | reject(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Redeclares io. Returns a new Multimap consisting of all elements which do not satisfy the given predicate. |
| public SortedMultimap | reject(Predicate<? super Tuple2<K, V>>
A predicate predicate)Redeclares io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. |
| public SortedMultimap | rejectKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Redeclares io. Returns a new Multimap consisting of all elements with keys which do not satisfy the given predicate. |
| public SortedMultimap | rejectValues(Predicate<? super V>
the predicate used to test values of elements predicate)Redeclares io. Returns a new Multimap consisting of all elements with values which do not satisfy the given predicate. |
| public SortedMultimap | remove(K
key whose mapping is to be removed from the multimap key)Redeclares io. Removes the mapping for a key from this multimap if it is present. |
| public SortedMultimap | remove(K
key whose mapping is to be removed from the multimap key, V value whose mapping is to be removed from the multimap value)Redeclares io. Removes the key-value pair from this multimap if it is present. |
| public SortedMultimap | removeAll(BiPredicate<? super K, ? super V>
the predicate used to test elements predicate)Redeclares io.
Deprecated
Returns a new Multimap consisting of all elements which do not satisfy the given predicate. |
| public SortedMultimap | removeAll(Iterable<? extends K>
keys are to be removed from the multimap keys)Redeclares io. Removes the mapping for a key from this multimap if it is present. |
| public SortedMultimap | removeKeys(Predicate<? super K>
the predicate used to test keys of elements predicate)Redeclares io.
Deprecated
Returns a new Multimap consisting of all elements with keys which do not satisfy the given predicate. |
| public SortedMultimap | removeValues(Predicate<? super V>
the predicate used to test values of elements predicate)Redeclares io.
Deprecated
Returns a new Multimap consisting of all elements with values which do not satisfy the given predicate. |
| public SortedMultimap | replace(Tuple2<K, V>
An element to be substituted. currentElement, Tuple2<K, V> A replacement for currentElement. newElement)Redeclares io. Replaces the first occurrence (if exists) of the given currentElement with newElement. |
| public SortedMultimap | replace(K
the key of the element to be substituted key, V the expected current value associated with the key oldValue, V the new value to be associated with the key newValue)Redeclares io. Replaces the entry with the specified key and oldValue. |
| public SortedMultimap | replaceAll(Tuple2<K, V>
An element to be substituted. currentElement, Tuple2<K, V> A replacement for currentElement. newElement)Redeclares io. Replaces all occurrences of the given currentElement with newElement. |
| public SortedMultimap | replaceAll(BiFunction<? super K, ? super V, ? extends V>
function transforming key and current value to a new value function)Redeclares io. Replaces each entry's values with the result of invoking the given function on that each tuple until all entries have been processed or the function throws an exception. |
| public SortedMultimap | replaceValue(K
the key of the element to be substituted key, V the new value to be associated with the key value)Redeclares io. Replaces the entry for the specified key only if it is currently mapped to some value. |
| public SortedMultimap | retainAll(Iterable<? extends Tuple2<K, V>>
Elements to be kept. elements)Redeclares io. Keeps all occurrences of the given elements from this. |
| public SortedMultimap | scan(Tuple2<K, V>
neutral element for the operator op zero, BiFunction<? super Tuple2<K, V>, ? super Tuple2<K, V>, ? extends Tuple2<K, V>> the associative operator for the scan operation)Redeclares io. Computes a prefix scan of the elements of the collection. |
| public Iterator | slideBy(Function<? super Tuple2<K, V>, ?>
A function which classifies elements into classes classifier)Redeclares io. Slides a non-overlapping window of a variable size over this |
| public Iterator | sliding(int
a positive window size size)Redeclares io. Slides a window of a specific |
| public Iterator | sliding(int
a positive window size size, int a positive step size step)Redeclares io. Slides a window of a specific |
| public Tuple2 | span(Predicate<? super Tuple2<K, V>>
A predicate. predicate)Redeclares io. Returns a tuple where the first element is the longest prefix of elements that satisfy the given
|
| public SortedMultimap | tail()
Redeclares io. Drops the first element of a non-empty Traversable. |
| public Option | tailOption()
Redeclares io. Drops the first element of a non-empty Traversable and returns an |
| public SortedMultimap | take(int
The number of elements to take. n)Redeclares io. Takes the first n elements of this or all elements, if this length < n. |
| public SortedMultimap | takeRight(int
The number of elements to take. n)Redeclares io. Takes the last n elements of this or all elements, if this length < n. |
| public SortedMultimap | takeUntil(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for this elements. predicate)Redeclares io. Takes elements until the predicate holds for the current element. |
| public SortedMultimap | takeWhile(Predicate<? super Tuple2<K, V>>
A condition tested subsequently for the contained elements. predicate)Redeclares io. Takes elements while the predicate holds for the current element. |
| public SortedMap | toJavaMap()
Redeclares io. Converts this Vavr |