Class ScopedValuesIncubatorNotes

java.lang.Object
net.jrodolfo.java_evolution.java20.scoped_values.ScopedValuesIncubatorNotes

public class ScopedValuesIncubatorNotes extends Object
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 Details

    • ScopedValuesIncubatorNotes

      public ScopedValuesIncubatorNotes()
  • Method Details

    • problemSolved

      public String problemSolved()
      Explains the practical problem.
      Returns:
      a short explanation
    • threadLocalProblem

      public String threadLocalProblem()
      Compares scoped values with a common older approach.
      Returns:
      a short comparison
    • incubatorIdea

      public String incubatorIdea()
      Describes what Java 20 introduced.
      Returns:
      a short explanation
    • incubatorStatus

      public String incubatorStatus()
      Describes the Java 20 maturity level.
      Returns:
      a short status note
    • projectDecision

      public String projectDecision()
      Explains why this package keeps Java 20 scoped values explanatory.
      Returns:
      the project decision
    • nextStep

      public String nextStep()
      Points learners to the later final API example.
      Returns:
      a short next-step note