Class LazyReference<T>
java.lang.Object
com.sk89q.worldedit.util.concurrency.LazyReference<T>
Thread-safe lazy reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> LazyReference
<T> computed
(T value) Pre-computed reference, for setting a lazy reference field with a known value.static <T> LazyReference
<T> getValue()
-
Method Details
-
from
-
computed
Pre-computed reference, for setting a lazy reference field with a known value.- Type Parameters:
T
- the type of the value- Parameters:
value
- the value of the reference- Returns:
- the new reference
-
getValue
-