Modifier and Type | Class and Description |
---|---|
public static record | ScopedValueContainer.
A snapshot of the scoped value bindings. |
Modifier and Type | Field and Description |
---|---|
private static final JavaLangAccess |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
public static <V, X extends Throwable> V | call(ScopedValue.
For use by ScopedValue to call a value returning operation in a structured context. |
private static <V, X extends Throwable> V | |
public static ScopedValueContainer. | |
private <V, X extends Throwable> V | |
private void | |
public static <T extends ScopedValueContainer> T | |
public static ScopedValueContainer | |
public static void | |
private static void | |
private static void |
JLA | back to summary |
---|---|
private static final JavaLangAccess JLA |
ScopedValueContainer | back to summary |
---|---|
private ScopedValueContainer() |
call | back to summary |
---|---|
public static <V, X extends Throwable> V call(ScopedValue. For use by ScopedValue to call a value returning operation in a structured context. |
callWithoutScope | back to summary |
---|---|
private static <V, X extends Throwable> V callWithoutScope(ScopedValue. Call an operation without a scope on the stack. |
captureBindings | back to summary |
---|---|
public static ScopedValueContainer. Returns the scoped value bindings for the current thread. |
doCall | back to summary |
---|---|
private <V, X extends Throwable> V doCall(ScopedValue. Call an operation with this scope on the stack. |
doRun | back to summary |
---|---|
private void doRun(Runnable op) Run an operation with this scope on the stack. |
latest | back to summary |
---|---|
public static <T extends ScopedValueContainer> T latest(Class<T> containerClass) Returns the "latest" ScopedValueContainer for the current Thread. This may be on the current thread's scope task or may require walking up the tree to find it. |
latest | back to summary |
---|---|
public static ScopedValueContainer latest() Returns the "latest" ScopedValueContainer for the current Thread. This may be on the current thread's scope task or may require walking up the tree to find it. |
run | back to summary |
---|---|
public static void run(Runnable op) For use by ScopedValue to run an operation in a structured context. |
runWithoutScope | back to summary |
---|---|
private static void runWithoutScope(Runnable op) Run an operation without a scope on the stack. |
throwIfFailed | back to summary |
---|---|
private static void throwIfFailed(Throwable ex, boolean atTop) Throws |
Modifier and Type | Field and Description |
---|---|
private final ScopedValueContainer | container
Record Component accessed by container(). |
private final Object | scopedValueBindings
Record Component accessed by scopedValueBindings(). |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public ScopedValueContainer | |
public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
public final int | |
public Object | |
public final String | toString()
Implements abstract java. Returns a string representation of the record. |
container | back to summary |
---|---|
private final ScopedValueContainer container Record Component accessed by container(). |
scopedValueBindings | back to summary |
---|---|
private final Object scopedValueBindings Record Component accessed by scopedValueBindings(). |
BindingsSnapshot | back to summary |
---|---|
public BindingsSnapshot(Object scopedValueBindings, ScopedValueContainer container) |
container | back to summary |
---|---|
public ScopedValueContainer container() Record Component getter of container. |
equals | back to summary |
---|---|
public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of R copy = new R(r.c1(), r.c2(), ..., r.cn());then it must be the case that r.equals(copy) .
|
hashCode | back to summary |
---|---|
public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
|
scopedValueBindings | back to summary |
---|---|
public Object scopedValueBindings() Record Component getter of scopedValueBindings. |
toString | back to summary |
---|---|
public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
|