Class EntryListAdapter<V>

  • All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>, java.util.List<V>

    public final class EntryListAdapter<V>
    extends java.util.AbstractSequentialList<V>
    List backed by an Iterable sequence of map entries.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<? extends java.util.Map.Entry<?,​V>> iterable  
      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      EntryListAdapter​(java.lang.Iterable<? extends java.util.Map.Entry<?,​V>> iterable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isEmpty()  
      java.util.Iterator<V> iterator()  
      java.util.ListIterator<V> listIterator​(int index)  
      int size()  
      • Methods inherited from class java.util.AbstractSequentialList

        add, addAll, get, remove, set
      • Methods inherited from class java.util.AbstractList

        add, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, removeRange, subList
      • Methods inherited from class java.util.AbstractCollection

        addAll, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, 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, contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
    • Field Detail

      • iterable

        private final java.lang.Iterable<? extends java.util.Map.Entry<?,​V>> iterable
    • Constructor Detail

      • EntryListAdapter

        public EntryListAdapter​(java.lang.Iterable<? extends java.util.Map.Entry<?,​V>> iterable)
    • Method Detail

      • iterator

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

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

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<V>
        Specified by:
        isEmpty in interface java.util.List<V>
        Overrides:
        isEmpty in class java.util.AbstractCollection<V>
      • size

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