Class LazyLoadableValue<T>


  • public class LazyLoadableValue<T>
    extends java.lang.Object
    Used to lazy load a value, only calculate it when used. Not thread-safety.
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyLoadableValue​(java.util.function.Supplier<T> loader)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getValue()  
      • Methods inherited from class java.lang.Object

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

      • LazyLoadableValue

        public LazyLoadableValue​(java.util.function.Supplier<T> loader)
    • Method Detail

      • getValue

        public T getValue()