Class LinkedMap.LinkedMapList

  • All Implemented Interfaces:
    java.lang.Iterable, java.util.Collection, java.util.List
    Enclosing class:
    LinkedMap

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

      Fields 
      Modifier and Type Field Description
      (package private) LinkedMap 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)  
      java.lang.Object get​(int index)  
      int indexOf​(java.lang.Object obj)  
      java.util.Iterator iterator()  
      int lastIndexOf​(java.lang.Object obj)  
      java.util.ListIterator listIterator()  
      java.util.ListIterator listIterator​(int fromIndex)  
      java.lang.Object remove​(int index)  
      boolean remove​(java.lang.Object obj)  
      boolean removeAll​(java.util.Collection coll)  
      boolean retainAll​(java.util.Collection coll)  
      int size()  
      java.util.List subList​(int fromIndexInclusive, int toIndexExclusive)  
      java.lang.Object[] toArray()  
      java.lang.Object[] toArray​(java.lang.Object[] 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, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

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

      • LinkedMapList

        LinkedMapList​(LinkedMap parent)
    • Method Detail

      • size

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

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

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

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

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

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

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

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

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

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

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

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

        public java.lang.Object[] toArray​(java.lang.Object[] array)
        Specified by:
        toArray in interface java.util.Collection
        Specified by:
        toArray in interface java.util.List
        Overrides:
        toArray in class java.util.AbstractCollection
      • iterator

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

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

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

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