Class ScopedValuesThirdPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java23.scoped_values.ScopedValuesThirdPreviewNotes
Explains scoped values as a Java 23 third preview feature.
Scoped values address the common need to pass immutable contextual data through a bounded execution scope. They are easier to reason about than broad mutable thread-local state, especially with many threads or child tasks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains the Java 22 connection.nextStep()Points learners to the next preview module and then the later Java 25 module.Explains the contextual-data problem.status()Describes the feature status across releases.Compares scoped values with a common older mechanism.
-
Constructor Details
-
ScopedValuesThirdPreviewNotes
public ScopedValuesThirdPreviewNotes()
-
-
Method Details
-
problemSolved
-
threadLocalContrast
Compares scoped values with a common older mechanism.- Returns:
- a short comparison
-
java22Connection
-
nextStep
Points learners to the next preview module and then the later Java 25 module.- Returns:
- a short next-step note
-
status
-