Class ConcurrentHashMapV8.ValuesView<K,​V>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<V>, java.util.Collection<V>
    Enclosing class:
    ConcurrentHashMapV8<K,​V>

    static final class ConcurrentHashMapV8.ValuesView<K,​V>
    extends ConcurrentHashMapV8.CollectionView<K,​V,​V>
    implements java.util.Collection<V>, java.io.Serializable
    A view of a ConcurrentHashMapV8 as a Collection of values, in which additions are disabled. This class cannot be directly instantiated. See ConcurrentHashMapV8.values().
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(V e)  
      boolean addAll​(java.util.Collection<? extends V> c)  
      boolean contains​(java.lang.Object o)  
      java.util.Iterator<V> iterator()
      Returns a "weakly consistent" iterator that will never throw ConcurrentModificationException, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
      boolean remove​(java.lang.Object o)  
      • Methods inherited from class java.lang.Object

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

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

        forEach
    • Method Detail

      • iterator

        public final java.util.Iterator<V> iterator()
        Description copied from class: ConcurrentHashMapV8.CollectionView
        Returns a "weakly consistent" iterator that will never throw ConcurrentModificationException, and guarantees to traverse elements as they existed upon construction of the iterator, and may (but is not guaranteed to) reflect any modifications subsequent to construction.
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in class ConcurrentHashMapV8.CollectionView<K,​V,​V>
      • add

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

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