Class LazyModule<T>

  • Type Parameters:
    T - The type of object to instantiate lazily.

    public class LazyModule<T>
    extends java.lang.Object
    A helper module to support lazy loading of objects.
    Author:
    Collin Alpert
    • Constructor Summary

      Constructors 
      Constructor Description
      LazyModule​(java.util.function.Supplier<T> valueFactory)  
    • 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

      • LazyModule

        public LazyModule​(java.util.function.Supplier<T> valueFactory)
    • Method Detail

      • getValue

        public T getValue()