[Java] Class LazyReference<T>
- org.codehaus.groovy.util.LazyReference
public abstract class LazyReference<T> extends LockableObject
Soft reference with lazy initialization under lock
Constructor Summary
Constructor and description |
---|
LazyReference
(ReferenceBundle bundle) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
clear() | |
public T |
get() | |
public abstract T |
initValue() | |
public String |
toString() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class LockableObject | isHeldExclusively, lock, tryAcquire, tryRelease, unlock |
Constructor Detail
public LazyReference(ReferenceBundle bundle)
Method Detail
public void clear()
public T get()
public abstract T initValue()
public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/util/LazyReference.html