Package net.dermetfan.utils
Class LazyFinal<T>
java.lang.Object
net.dermetfan.utils.LazyFinal<T>
public class LazyFinal<T>
extends java.lang.Object
Enforces the final keyword at runtime.
- Since:
- 0.13.4
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LazyFinal
public LazyFinal()Declaration. -
LazyFinal
Initialization.- Parameters:
object
- the object to initialize with
-
-
Method Details
-
init
- Parameters:
object
- theobject
- Throws:
java.lang.IllegalStateException
- if alreadyinitialized
-
get
- Returns:
- the
object
- Throws:
java.lang.IllegalStateException
- if not yetinitialized
-