Class LinkedMap.LinkedMapList<K>

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

    static class LinkedMap.LinkedMapList<K>
    extends java.util.AbstractList<K>
    List view of map.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private LinkedMap<K,​?> parent  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean contains​(java.lang.Object obj)  
      boolean containsAll​(java.util.Collection<?> coll)  
      K get​(int index)  
      int indexOf​(java.lang.Object obj)  
      java.util.Iterator<K> iterator()  
      int lastIndexOf​(java.lang.Object obj)  
      java.util.ListIterator<K> listIterator()  
      java.util.ListIterator<K> listIterator​(int fromIndex)  
      K remove​(int index)  
      boolean remove​(java.lang.Object obj)  
      boolean removeAll​(java.util.Collection<?> coll)  
      boolean removeIf​(java.util.function.Predicate<? super K> filter)  
      boolean retainAll​(java.util.Collection<?> coll)  
      int size()  
      java.util.List<K> subList​(int fromIndexInclusive, int toIndexExclusive)  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] array)  
      • Methods inherited from class java.util.AbstractList

        add, add, addAll, equals, hashCode, removeRange, set
      • Methods inherited from class java.util.AbstractCollection

        addAll, isEmpty, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, stream
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        addAll, isEmpty, replaceAll, sort, spliterator
    • Field Detail

    • Constructor Detail

      • LinkedMapList

        LinkedMapList​(LinkedMap<K,​?> parent)
    • Method Detail

      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in interface java.util.List<K>
        Specified by:
        size in class java.util.AbstractCollection<K>
      • get

        public K get​(int index)
        Specified by:
        get in interface java.util.List<K>
        Specified by:
        get in class java.util.AbstractList<K>
      • contains

        public boolean contains​(java.lang.Object obj)
        Specified by:
        contains in interface java.util.Collection<K>
        Specified by:
        contains in interface java.util.List<K>
        Overrides:
        contains in class java.util.AbstractCollection<K>
      • indexOf

        public int indexOf​(java.lang.Object obj)
        Specified by:
        indexOf in interface java.util.List<K>
        Overrides:
        indexOf in class java.util.AbstractList<K>
      • lastIndexOf

        public int lastIndexOf​(java.lang.Object obj)
        Specified by:
        lastIndexOf in interface java.util.List<K>
        Overrides:
        lastIndexOf in class java.util.AbstractList<K>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> coll)
        Specified by:
        containsAll in interface java.util.Collection<K>
        Specified by:
        containsAll in interface java.util.List<K>
        Overrides:
        containsAll in class java.util.AbstractCollection<K>
      • remove

        public K remove​(int index)
        Specified by:
        remove in interface java.util.List<K>
        Overrides:
        remove in class java.util.AbstractList<K>
      • remove

        public boolean remove​(java.lang.Object obj)
        Specified by:
        remove in interface java.util.Collection<K>
        Specified by:
        remove in interface java.util.List<K>
        Overrides:
        remove in class java.util.AbstractCollection<K>
      • removeIf

        public boolean removeIf​(java.util.function.Predicate<? super K> filter)
        Since:
        4.4
      • removeAll

        public boolean removeAll​(java.util.Collection<?> coll)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Specified by:
        removeAll in interface java.util.List<K>
        Overrides:
        removeAll in class java.util.AbstractCollection<K>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> coll)
        Specified by:
        retainAll in interface java.util.Collection<K>
        Specified by:
        retainAll in interface java.util.List<K>
        Overrides:
        retainAll in class java.util.AbstractCollection<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.List<K>
        Overrides:
        clear in class java.util.AbstractList<K>
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<K>
        Specified by:
        toArray in interface java.util.List<K>
        Overrides:
        toArray in class java.util.AbstractCollection<K>
      • toArray

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<K>
        Specified by:
        toArray in interface java.util.List<K>
        Overrides:
        toArray in class java.util.AbstractCollection<K>
      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in interface java.util.List<K>
        Overrides:
        iterator in class java.util.AbstractList<K>
      • listIterator

        public java.util.ListIterator<K> listIterator()
        Specified by:
        listIterator in interface java.util.List<K>
        Overrides:
        listIterator in class java.util.AbstractList<K>
      • listIterator

        public java.util.ListIterator<K> listIterator​(int fromIndex)
        Specified by:
        listIterator in interface java.util.List<K>
        Overrides:
        listIterator in class java.util.AbstractList<K>
      • subList

        public java.util.List<K> subList​(int fromIndexInclusive,
                                         int toIndexExclusive)
        Specified by:
        subList in interface java.util.List<K>
        Overrides:
        subList in class java.util.AbstractList<K>