Class PrimitivePatternsPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java23.primitive_patterns.PrimitivePatternsPreviewNotes
Explains primitive types in patterns,
instanceof, and switch
as a Java 23 preview feature.
Pattern matching had already improved reference-type checks and deconstruction
with instanceof, records, and switch. Primitive values were
still less integrated. This preview moves Java toward a more uniform pattern
model for both reference and primitive values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExplains the broader pattern-matching direction.nextStep()Points learners to the next previews in this repository.Explains the feature goal.Explains an important safety goal.status()Describes the preview status in this repository's version range.Explains what Java 23 previewed.
-
Constructor Details
-
PrimitivePatternsPreviewNotes
public PrimitivePatternsPreviewNotes()
-
-
Method Details
-
problemSolved
-
whatJavaPreviewed
-
languageDirection
Explains the broader pattern-matching direction.- Returns:
- a short explanation
-
safetyGoal
-
nextStep
Points learners to the next previews in this repository.- Returns:
- a short next-step note
-
status
Describes the preview status in this repository's version range.- Returns:
- a short status note
-