Class ScopedValuesIncubatorNotes
java.lang.Object
net.jrodolfo.java_evolution.java20.scoped_values.ScopedValuesIncubatorNotes
Explains scoped values as a Java 20 incubator feature.
Java 20 introduced scoped values as an incubating API. The feature explored a safer way to make immutable contextual data available to code deeper in a call chain, without forcing every intermediate method to receive and forward that value as a parameter.
This package keeps the Java 20 step explanatory because the incubator API required an incubator module and changed before the feature became final.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDescribes what Java 20 introduced.Describes the Java 20 maturity level.nextStep()Points learners to the later final API example.Explains the practical problem.Explains why this package keeps Java 20 scoped values explanatory.Compares scoped values with a common older approach.
-
Constructor Details
-
ScopedValuesIncubatorNotes
public ScopedValuesIncubatorNotes()
-
-
Method Details
-
problemSolved
-
threadLocalProblem
Compares scoped values with a common older approach.- Returns:
- a short comparison
-
incubatorIdea
-
incubatorStatus
-
projectDecision
Explains why this package keeps Java 20 scoped values explanatory.- Returns:
- the project decision
-
nextStep
Points learners to the later final API example.- Returns:
- a short next-step note
-