Class AbstractListValuedMap.WrappedList

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

    private class AbstractListValuedMap.WrappedList
    extends AbstractMultiValuedMap.WrappedCollection
    implements java.util.List<V>
    Wrapped list to handle add and remove on the list returned by get(object)
    • Constructor Detail

      • WrappedList

        public WrappedList​(K key)
    • Method Detail

      • add

        public void add​(int index,
                        V value)
        Specified by:
        add in interface java.util.List<V>
      • addAll

        public boolean addAll​(int index,
                              java.util.Collection<? extends V> c)
        Specified by:
        addAll in interface java.util.List<V>
      • get

        public V get​(int index)
        Specified by:
        get in interface java.util.List<V>
      • indexOf

        public int indexOf​(java.lang.Object o)
        Specified by:
        indexOf in interface java.util.List<V>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object o)
        Specified by:
        lastIndexOf in interface java.util.List<V>
      • listIterator

        public java.util.ListIterator<V> listIterator()
        Specified by:
        listIterator in interface java.util.List<V>
      • listIterator

        public java.util.ListIterator<V> listIterator​(int index)
        Specified by:
        listIterator in interface java.util.List<V>
      • remove

        public V remove​(int index)
        Specified by:
        remove in interface java.util.List<V>
      • set

        public V set​(int index,
                     V value)
        Specified by:
        set in interface java.util.List<V>
      • subList

        public java.util.List<V> subList​(int fromIndex,
                                         int toIndex)
        Specified by:
        subList in interface java.util.List<V>
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in interface java.util.Collection<V>
        Specified by:
        equals in interface java.util.List<V>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<V>
        Specified by:
        hashCode in interface java.util.List<V>
        Overrides:
        hashCode in class java.lang.Object