Package de.arstwo.twotil
Class LazyInit<T>
java.lang.Object
de.arstwo.twotil.LazyInit<T>
- All Implemented Interfaces:
Supplier<T>
Initializes something on the first use.
Confirmation of initialization is done by replacing the accessor function. This way the JIT can easily determine that the resulting accessor is empty boilerplate that can be inlined.
-
Constructor Summary
Constructors -
Method Summary