Class FilteredKeyMultimap.AddRejectingSet<K,​V>

  • All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>, java.util.Set<V>
    Enclosing class:
    FilteredKeyMultimap<K,​V>

    static class FilteredKeyMultimap.AddRejectingSet<K,​V>
    extends ForwardingSet<V>
    • Field Detail

      • key

        final K key
    • Constructor Detail

      • AddRejectingSet

        AddRejectingSet​(K key)
    • Method Detail

      • add

        public boolean add​(V element)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.Set<K>
        Overrides:
        add in class ForwardingCollection<V>
      • addAll

        public boolean addAll​(java.util.Collection<? extends V> collection)
        Specified by:
        addAll in interface java.util.Collection<K>
        Specified by:
        addAll in interface java.util.Set<K>
        Overrides:
        addAll in class ForwardingCollection<V>
      • delegate

        protected java.util.Set<V> delegate()
        Description copied from class: ForwardingObject
        Returns the backing delegate instance that methods are forwarded to. Abstract subclasses generally override this method with an abstract method that has a more specific return type, such as ForwardingSet.delegate(). Concrete subclasses override this method to supply the instance being decorated.
        Specified by:
        delegate in class ForwardingSet<V>