Class BuilderMapEntryCollection<Key>

  • All Implemented Interfaces:
    java.lang.Iterable<java.util.Map.Entry<Key,​java.lang.Integer>>, java.util.Collection<java.util.Map.Entry<Key,​java.lang.Integer>>

    public abstract class BuilderMapEntryCollection<Key>
    extends java.util.AbstractCollection<java.util.Map.Entry<Key,​java.lang.Integer>>
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract int getValue​(Key key)  
      java.util.Iterator<java.util.Map.Entry<Key,​java.lang.Integer>> iterator()  
      protected abstract int setValue​(Key key, int value)  
      int size()  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
      • Methods inherited from class java.lang.Object

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

        equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • BuilderMapEntryCollection

        public BuilderMapEntryCollection​(@Nonnull
                                         java.util.Collection<Key> keys)
    • Method Detail

      • iterator

        @Nonnull
        public java.util.Iterator<java.util.Map.Entry<Key,​java.lang.Integer>> iterator()
        Specified by:
        iterator in interface java.util.Collection<Key>
        Specified by:
        iterator in interface java.lang.Iterable<Key>
        Specified by:
        iterator in class java.util.AbstractCollection<java.util.Map.Entry<Key,​java.lang.Integer>>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<Key>
        Specified by:
        size in class java.util.AbstractCollection<java.util.Map.Entry<Key,​java.lang.Integer>>
      • getValue

        protected abstract int getValue​(@Nonnull
                                        Key key)
      • setValue

        protected abstract int setValue​(@Nonnull
                                        Key key,
                                        int value)