Class AbstractMutableMap.ValuesCollectionCommon<V>

  • All Implemented Interfaces:
    java.lang.Iterable<V>, java.util.Collection<V>
    Direct Known Subclasses:
    UnifiedMap.ValuesCollection, UnifiedMapWithHashingStrategy.ValuesCollection
    Enclosing class:
    AbstractMutableMap<K,​V>

    protected abstract static class AbstractMutableMap.ValuesCollectionCommon<V>
    extends java.lang.Object
    implements java.util.Collection<V>
    Trait-style class that is used to capture commonalities between ValuesCollection class implementations in order to avoid code duplication.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(V v)  
      boolean addAll​(java.util.Collection<? extends V> collection)  
      • Methods inherited from class java.lang.Object

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

        clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • ValuesCollectionCommon

        protected ValuesCollectionCommon()
    • Method Detail

      • add

        public boolean add​(V v)
        Specified by:
        add in interface java.util.Collection<V>
      • addAll

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