Class PrimitivePatternsSecondPreviewNotes
java.lang.Object
net.jrodolfo.java_evolution.java24.primitive_patterns.PrimitivePatternsSecondPreviewNotes
Explains primitive patterns second preview in Java 24.
Primitive patterns continue the work of making primitive values participate
more naturally in pattern matching, instanceof, and switch.
Java 24 kept the feature in preview for another round of feedback.
This repository keeps the Java 24 step as notes because the feature is still preview in this version range.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnextStep()Points learners to the next preview.Explains the older mental split.Explains why Java 24 keeps this entry as a bridge note.Explains the primitive-pattern model.Explains the pattern-matching problem.Explains why the feature is useful beyond syntax.Describes the Java 24 maturity level.
-
Constructor Details
-
PrimitivePatternsSecondPreviewNotes
public PrimitivePatternsSecondPreviewNotes()
-
-
Method Details
-
problemSolved
-
olderModel
-
primitivePatternModel
Explains the primitive-pattern model.- Returns:
- a short explanation
-
safetyGoal
Explains why the feature is useful beyond syntax.- Returns:
- a short explanation
-
previewStep
Explains why Java 24 keeps this entry as a bridge note.- Returns:
- a short explanation
-
secondPreviewStatus
Describes the Java 24 maturity level.- Returns:
- a short status note
-
nextStep
-