Class WeakFastHashMap.CollectionView<E>

  • Type Parameters:
    E - the element type
    All Implemented Interfaces:
    java.lang.Iterable<E>, java.util.Collection<E>
    Direct Known Subclasses:
    WeakFastHashMap.EntrySet, WeakFastHashMap.KeySet, WeakFastHashMap.Values
    Enclosing class:
    WeakFastHashMap<K,​V>

    private abstract class WeakFastHashMap.CollectionView<E>
    extends java.lang.Object
    implements java.util.Collection<E>
    Abstract collection implementation shared by keySet(), values() and entrySet().
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionView()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(E o)  
      boolean addAll​(java.util.Collection<? extends E> c)  
      void clear()  
      boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> o)  
      boolean equals​(java.lang.Object o)  
      protected abstract java.util.Collection<E> get​(java.util.Map<K,​V> map)  
      int hashCode()  
      boolean isEmpty()  
      java.util.Iterator<E> iterator()  
      protected abstract E iteratorNext​(java.util.Map.Entry<K,​V> entry)  
      boolean remove​(java.lang.Object o)  
      boolean removeAll​(java.util.Collection<?> o)  
      boolean retainAll​(java.util.Collection<?> o)  
      int size()  
      java.lang.Object[] toArray()  
      <T> T[] toArray​(T[] o)  
      • Methods inherited from class java.lang.Object

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

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

        forEach
    • Constructor Detail

      • CollectionView

        public CollectionView()
    • Method Detail

      • get

        protected abstract java.util.Collection<E> get​(java.util.Map<K,​V> map)
      • iteratorNext

        protected abstract E iteratorNext​(java.util.Map.Entry<K,​V> entry)
      • clear

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

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

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

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

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

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

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

        public boolean containsAll​(java.util.Collection<?> o)
        Specified by:
        containsAll in interface java.util.Collection<E>
      • toArray

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

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

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<E>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<E>
        Overrides:
        hashCode in class java.lang.Object
      • add

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

        public boolean addAll​(java.util.Collection<? extends E> c)
        Specified by:
        addAll in interface java.util.Collection<E>
      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.util.Collection<E>
        Specified by:
        iterator in interface java.lang.Iterable<E>