Class FilteredKeyMultimap.AddRejectingList<K,​V>

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

    static class FilteredKeyMultimap.AddRejectingList<K,​V>
    extends ForwardingList<V>
    • Field Detail

      • key

        final K key
    • Constructor Detail

      • AddRejectingList

        AddRejectingList​(K key)
    • Method Detail

      • add

        public boolean add​(V v)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.List<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.List<K>
        Overrides:
        addAll in class ForwardingCollection<V>
      • add

        public void add​(int index,
                        V element)
        Specified by:
        add in interface java.util.List<K>
        Overrides:
        add in class ForwardingList<V>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends V> elements)
        Specified by:
        addAll in interface java.util.List<K>
        Overrides:
        addAll in class ForwardingList<V>
      • delegate

        protected java.util.List<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 ForwardingList<V>