Class SoftReferenceCache<T>


  • public class SoftReferenceCache<T>
    extends java.lang.Object
    Caches a value with a soft reference.
    Since:
    6.1.0
    Author:
    Clément Fournier
    • Method Detail

      • hasValue

        public boolean hasValue()
      • get

        public T get()
        Gets the value of this cache. Uses the supplier function in cache of cache miss.
        Returns:
        The value