OpenJDK's Project Amber has proposed "carrier classes" and "carrier interfaces" to extend record-like capabilities to more flexible Java class designs. While records (introduced in Java 16) provide concise immutable data modeling with auto-generated methods and pattern matching support, they have strict constraints that limit

4m read time From infoq.com
Post cover image

Sort: