[Java] Class LazyReference<T>
- org.codehaus.groovy.util.LazyReference
Soft reference with lazy initialization under lock
Constructor Summary
| Constructor and description |
|---|
LazyReference
(ReferenceBundle bundle) |
Methods Summary
| Type Params | Return Type | Name and description |
|---|---|---|
void |
clear() | |
T |
get() | |
T |
initValue() | |
String |
toString() |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class LockableObject | isHeldExclusively, lock, tryAcquire, tryRelease, unlock |
class AbstractQueuedSynchronizer | toString, acquireInterruptibly, getQueueLength, getQueuedThreads, getWaitQueueLength, getWaitingThreads, hasQueuedThreads, hasWaiters, isQueued, release, tryAcquireNanos, acquire, acquireShared, acquireSharedInterruptibly, getExclusiveQueuedThreads, getFirstQueuedThread, getSharedQueuedThreads, hasContended, hasQueuedPredecessors, owns, releaseShared, tryAcquireSharedNanos, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Constructor Detail
public LazyReference(ReferenceBundle bundle)
Method Detail
public void clear()
public T get()
public T initValue()
public String toString()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/util/LazyReference.html