Class LazyModule<T>

java.lang.Object
com.github.collinalpert.java2db.modules.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

    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 Details

    • LazyModule

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