Uses of Class java.lang.ScopedValue (Java SE 25 & JDK 25)
Description: use: module: java.base, package: java.lang, class: ScopedValue

# Uses of Class
java.lang.ScopedValue

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

- ## Uses of ScopedValue in java.lang

  Methods in java.lang that return ScopedValue
  Modifier and Type
  Method
  Description
  `static <T> ScopedValue<T>`
  ScopedValue.`newInstance()`
  Creates a scoped value that is initially unbound for all threads.
  Methods in java.lang with parameters of type ScopedValue
  Modifier and Type
  Method
  Description
  `<T> T`
  ScopedValue.Carrier.`get(ScopedValue<T> key)`
  Returns the value of a `ScopedValue` in this mapping.
  `<T> ScopedValue.Carrier`
  ScopedValue.Carrier.`where(ScopedValue<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.Carrier`
  ScopedValue.`where(ScopedValue<T> key, T value)`
  Creates a new `Carrier` with a single mapping of a `ScopedValue` key to a value.