Class GenericMapCollection<K,​V,​M extends java.util.Map<K,​V>,​I>

  • All Implemented Interfaces:
    java.lang.Iterable<I>, java.util.Collection<I>
    Direct Known Subclasses:
    GenericMapSet, GenericMapValues

    public abstract class GenericMapCollection<K,​V,​M extends java.util.Map<K,​V>,​I>
    extends java.lang.Object
    implements java.util.Collection<I>
    • Field Summary

      Modifier and Type Field Description
      protected M source  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(I item)  
      boolean addAll​(java.util.Collection<? extends I> collection)  
      java.lang.StringBuilder appendTo​(java.lang.StringBuilder sb)  
      void clear()  
      boolean containsAll​(java.util.Collection<?> collection)  
      boolean isEmpty()  
      java.util.Iterator<I> iterator()  
      protected abstract java.util.Iterator<I> iterator​(boolean noteAccess)  
      boolean removeAll​(java.util.Collection<?> collection)  
      boolean retainAll​(java.util.Collection<?> collection)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] array)  
      java.lang.String 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

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

    • Field Detail

      • source

        protected final M extends java.util.Map<K,​V> source
    • Constructor Detail

      • GenericMapCollection

        public GenericMapCollection​(M source)
    • Method Detail

      • add

        public boolean add​(I item)
        Specified by:
        add in interface java.util.Collection<K>
      • addAll

        public boolean addAll​(java.util.Collection<? extends I> collection)
        Specified by:
        addAll in interface java.util.Collection<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> collection)
        Specified by:
        containsAll in interface java.util.Collection<K>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<K>
      • iterator

        public final java.util.Iterator<I> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
      • iterator

        protected abstract java.util.Iterator<I> iterator​(boolean noteAccess)
      • removeAll

        public boolean removeAll​(java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<K>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> collection)
        Specified by:
        retainAll in interface java.util.Collection<K>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
      • toArray

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

        public <T> T[] toArray​(T[] array)
        Specified by:
        toArray in interface java.util.Collection<K>
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • appendTo

        public java.lang.StringBuilder appendTo​(java.lang.StringBuilder sb)