# Uses of Class
java.lang.ScopedValue

Packages that use ScopedValuePREVIEW
Package
Description
java.lang
Provides classes that are fundamental to the design of the Java programming language.

## Uses of ScopedValuePREVIEW in java.lang

Methods in java.lang that return ScopedValuePREVIEW
Modifier and Type
Method
Description
`static <T> ScopedValuePREVIEW<T>`
ScopedValue.`newInstance()`
Creates a scoped value that is initially unbound for all threads.
Methods in java.lang with parameters of type ScopedValuePREVIEW
Modifier and Type
Method
Description
`static <T, R> R`
ScopedValue.`callWhere(ScopedValuePREVIEW<T> key, T value, Callable<? extends R> op)`
Calls a value-returning operation with a `ScopedValue` bound to a value in the current thread.
`<T> T`
ScopedValue.Carrier.`get(ScopedValuePREVIEW<T> key)`
Returns the value of a `ScopedValue`PREVIEW in this mapping.
`static <T, R> R`
ScopedValue.`getWhere(ScopedValuePREVIEW<T> key, T value, Supplier<? extends R> op)`
Invokes a supplier of results with a `ScopedValue` bound to a value in the current thread.
`static <T> void`
ScopedValue.`runWhere(ScopedValuePREVIEW<T> key, T value, Runnable op)`
Run an operation with a `ScopedValue` bound to a value in the current thread.
`<T> ScopedValue.CarrierPREVIEW`
ScopedValue.Carrier.`where(ScopedValuePREVIEW<T> key, T value)`
Returns a new `Carrier` with the mappings from this carrier plus a new mapping from `key` to `value`.
`static <T> ScopedValue.CarrierPREVIEW`
ScopedValue.`where(ScopedValuePREVIEW<T> key, T value)`
Creates a new `Carrier` with a single mapping of a `ScopedValue` key to a value.