Java.evolved: Java has evolved. Your code can too3 months ago#Java#Modernization#Programminghttps://javaevolved.github.ioCopy Link传统Java模式与现代替代方案的对比传统Java类'Point'的示例,包含私有字段、getter方法和标准方法使用Java'record'作为现代替代方案实现相同的'Point'类,大幅简化代码