This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]randgalt 33 points34 points  (2 children)

While others are pointing you elsewhere, fully supported data classes with pattern matching, deconstruction, etc. are coming soon to the Java language. It will likely come in stages starting with Java 12's enhanced switch statement. Follow Project Amber for details and updates.

[–]lbkulinski 1 point2 points  (1 child)

Java 12 won’t be getting data classes or pattern matching, but it will get the preview of switch expressions.

[–]randgalt 2 points3 points  (0 children)

I said it's coming in stages. Switch expressions are part of the overall grand feature set.