作者 | Michael Redlich 译者 | 平川OpenJDKJEP 532(模式、instanceof 和 switch 中的基本类型第五轮预览)已从候选状态提升至 Proposed to Target 状态,计划在 JDK 27 中交付。该 JEP 在 JDK 23 至 JDK 26 期间经历了四轮预览后,现在推出了第五个预览版,内容保持不变。该特性增强了模式匹配功能,允许在所有模式上 ...
Learn how to use pattern-matching features in your Java programs, including pattern matching with switch statements, when clauses, sealed classes, and a preview of primitive type pattern matching in ...
Introduced with the Java 17 release, pattern matching enhances the instanceof operator so Java developers can better check and object's type and extract its components, and more efficiently deal with ...
一些您可能无法访问的结果已被隐去。
显示无法访问的结果