Class EntrySetAdapter<V>

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

    public final class EntrySetAdapter<V>
    extends java.util.AbstractSet<V>
    Set backed by an Iterable sequence of map entries.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      private static class  EntrySetAdapter.ValueIterator<V>
      Value Iterator backed by a Key:Value Iterator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<? extends java.util.Map.Entry<?,​V>> iterable  
    • Constructor Summary

      Constructors 
      Constructor Description
      EntrySetAdapter​(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()  
      int size()  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode, removeAll
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, remove, 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.Set

        add, addAll, clear, contains, containsAll, remove, retainAll, spliterator, toArray, toArray
    • Field Detail

      • iterable

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

      • EntrySetAdapter

        public EntrySetAdapter​(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.Set<V>
        Specified by:
        iterator in class java.util.AbstractCollection<V>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<V>
        Specified by:
        isEmpty in interface java.util.Set<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.Set<V>
        Specified by:
        size in class java.util.AbstractCollection<V>