Class CacheSetImpl<T>

  • All Implemented Interfaces:
    CacheSet<T>

    public class CacheSetImpl<T>
    extends java.lang.Object
    implements CacheSet<T>
    Cache set
    • Constructor Summary

      Constructors 
      Constructor Description
      CacheSetImpl​(Cache<T,​java.lang.Object> cache)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(T e)  
      void clear()  
      boolean contains​(T obj)  
      boolean isEmpty()  
      java.util.Iterator<T> iterator()  
      void remove​(T obj)  
      void setDropHandler​(java.util.function.Consumer<T> dropHandler)
      Callback for entries when dropped from the cache
      long size()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CacheSetImpl

        public CacheSetImpl​(Cache<T,​java.lang.Object> cache)
    • Method Detail

      • setDropHandler

        public void setDropHandler​(java.util.function.Consumer<T> dropHandler)
        Callback for entries when dropped from the cache
        Specified by:
        setDropHandler in interface CacheSet<T>
      • add

        public void add​(T e)
        Specified by:
        add in interface CacheSet<T>
      • clear

        public void clear()
        Specified by:
        clear in interface CacheSet<T>
      • contains

        public boolean contains​(T obj)
        Specified by:
        contains in interface CacheSet<T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface CacheSet<T>
      • iterator

        public java.util.Iterator<T> iterator()
      • remove

        public void remove​(T obj)
        Specified by:
        remove in interface CacheSet<T>
      • size

        public long size()
        Specified by:
        size in interface CacheSet<T>