Class UnboundedLocalCache.ValuesView<K,​V>

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

    static final class UnboundedLocalCache.ValuesView<K,​V>
    extends java.util.AbstractCollection<V>
    An adapter to safely externalize the values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean contains​(java.lang.Object o)  
      boolean isEmpty()  
      java.util.Iterator<V> iterator()  
      boolean removeIf​(java.util.function.Predicate<? super V> filter)  
      int size()  
      java.util.Spliterator<V> spliterator()  
      • Methods inherited from class java.util.AbstractCollection

        add, addAll, containsAll, remove, removeAll, retainAll, toArray, toArray, 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

        equals, hashCode, parallelStream, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<K>
        Overrides:
        isEmpty in class java.util.AbstractCollection<V>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in class java.util.AbstractCollection<V>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Overrides:
        clear in class java.util.AbstractCollection<V>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<K>
        Overrides:
        contains in class java.util.AbstractCollection<V>
      • removeIf

        public boolean removeIf​(java.util.function.Predicate<? super V> filter)
      • iterator

        public java.util.Iterator<V> iterator()
        Specified by:
        iterator in interface java.util.Collection<K>
        Specified by:
        iterator in interface java.lang.Iterable<K>
        Specified by:
        iterator in class java.util.AbstractCollection<V>
      • spliterator

        public java.util.Spliterator<V> spliterator()