Class ConcurrentHashMapV8.CollectionView<K,​V,​E>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Removes all of the elements from this view, by removing all the mappings from the map backing this view.
      abstract boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> c)  
      ConcurrentHashMapV8<K,​V> getMap()
      Returns the map backing this view.
      boolean isEmpty()  
      abstract java.util.Iterator<E> 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.
      abstract boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> c)  
      boolean retainAll​(java.util.Collection<?> c)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] a)  
      java.lang.String toString()
      Returns a string representation of this collection.
      • Methods inherited from class java.lang.Object

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

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

        forEach
    • Method Detail

      • getMap

        public ConcurrentHashMapV8<K,​V> getMap()
        Returns the map backing this view.
        Returns:
        the map backing this view
      • clear

        public final void clear()
        Removes all of the elements from this view, by removing all the mappings from the map backing this view.
        Specified by:
        clear in interface java.util.Collection<K>
      • size

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

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

        public abstract java.util.Iterator<E> 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.
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
      • contains

        public abstract boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<K>
      • remove

        public abstract boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<K>
      • toArray

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

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

        public final java.lang.String toString()
        Returns a string representation of this collection. The string representation consists of the string representations of the collection's elements in the order they are returned by its iterator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). Elements are converted to strings as by String.valueOf(Object).
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this collection
      • containsAll

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

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

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