Class ForwardingSortedSetMultimap<K extends @Nullable Object, V extends @Nullable Object>

All Implemented Interfaces:
Multimap<K,V>, SetMultimap<K,V>, SortedSetMultimap<K,V>

@GwtCompatible public abstract class ForwardingSortedSetMultimap<K extends @Nullable Object, V extends @Nullable Object> extends ForwardingSetMultimap<K,V> implements SortedSetMultimap<K,V>
A sorted set multimap which forwards all its method calls to another sorted set multimap. Subclasses should override one or more methods to modify the behavior of the backing multimap as desired per the decorator pattern.

default method warning: This class does not forward calls to default methods. Instead, it inherits their default implementations. When those implementations invoke methods, they invoke methods on the ForwardingSortedSetMultimap.

Since:
3.0
Author:
Kurt Alfred Kluever
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor for use by subclasses.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract SortedSetMultimap<K,V>
    Returns the backing delegate instance that methods are forwarded to.
    get(K key)
    Returns a view collection of the values associated with key in this multimap, if any.
    Removes all values associated with the key key.
    replaceValues(K key, Iterable<? extends V> values)
    Stores a collection of values with the same key, replacing any existing values for that key.
    Returns the comparator that orders the multimap values, with null indicating that natural ordering is used.

    Methods inherited from class ForwardingSetMultimap

    entries
    Modifier and Type
    Method
    Description
    Returns a view collection of all key-value pairs contained in this multimap, as Map.Entry instances.

    Methods inherited from class ForwardingMultimap

    asMap, clear, containsEntry, containsKey, containsValue, equals, hashCode, isEmpty, keys, keySet, put, putAll, putAll, remove, size, values
    Modifier and Type
    Method
    Description
    Returns a view of this multimap as a Map from each distinct key to the nonempty collection of that key's associated values.
    void
    Removes all key-value pairs from the multimap, leaving it empty.
    boolean
    Returns true if this multimap contains at least one key-value pair with the key key and the value value.
    boolean
    Returns true if this multimap contains at least one key-value pair with the key key.
    boolean
    Returns true if this multimap contains at least one key-value pair with the value value.
    boolean
    Compares the specified object with this multimap for equality.
    int
    Returns the hash code for this multimap.
    boolean
    Returns true if this multimap contains no key-value pairs.
    Returns a view collection containing the key from each key-value pair in this multimap, without collapsing duplicates.
    Returns a view collection of all distinct keys contained in this multimap.
    boolean
    put(K key, V value)
    Stores a key-value pair in this multimap.
    boolean
    putAll(Multimap<? extends K, ? extends V> multimap)
    Stores all key-value pairs of multimap in this multimap, in the order returned by multimap.entries().
    boolean
    putAll(K key, Iterable<? extends V> values)
    Stores a key-value pair in this multimap for each of values, all using the same key, key.
    boolean
    Removes a single key-value pair with the key key and the value value from this multimap, if such exists.
    int
    Returns the number of key-value pairs in this multimap.
    Returns a view collection containing the value from each key-value pair contained in this multimap, without collapsing duplicates (so values().size() == size()).

    Methods inherited from class ForwardingObject

    toString
    Modifier and Type
    Method
    Description
    Returns the string representation generated by the delegate's toString method.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface Multimap

    forEach
    Modifier and Type
    Method
    Description
    default void
    forEach(BiConsumer<? super K, ? super V> action)
    Performs the given action for all key-value pairs contained in this multimap.

    Methods inherited from interface SetMultimap

    equals
    Modifier and Type
    Method
    Description
    boolean
    Compares the specified object to this multimap for equality.

    Methods inherited from interface SortedSetMultimap

    asMap
    Modifier and Type
    Method
    Description
    Returns a map view that associates each key with the corresponding values in the multimap.