Lazy.Check, Lazy.Checker, Lazy.ClearingEvaluator, Lazy.Default<T>| Modifier and Type | Method and Description |
|---|---|
void |
$link(long objectId,
ObjectSwizzling loader) |
void |
$setLoader(ObjectSwizzling loader) |
T |
clear()
Clears the reference, leaving the option to re-load it again intact, and returns the subject that was
referenced prior to clearing.
|
boolean |
clear(Lazy.ClearingEvaluator clearingEvaluator) |
static Class<Lazy.Default<?>> |
genericType() |
T |
get()
Returns the original subject referenced by this reference instance.
|
boolean |
isLoaded() |
boolean |
isStored() |
long |
lastTouched()
Returns the timestamp (corresponding to
System.currentTimeMillis()) when this instance has last been
"touched", meaning having its reference modified or queried. |
long |
objectId() |
T |
peek()
Returns the wrapped reference without loading it on demand.
|
String |
toString() |
public static final Class<Lazy.Default<?>> genericType()
public final long objectId()
public final long lastTouched()
LazySystem.currentTimeMillis()) when this instance has last been
"touched", meaning having its reference modified or queried.lastTouched in interface Lazy<T>public final T peek()
public final T clear()
public final boolean clear(Lazy.ClearingEvaluator clearingEvaluator)
public final void $link(long objectId,
ObjectSwizzling loader)
public final void $setLoader(ObjectSwizzling loader)
public final T get()
Copyright © 2022 MicroStream Software. All rights reserved.