JEP 468: Withers für Records
New JEP on implementing Withers for Java Records:
record Point(int x, int y, int z) { }
Point nextLoc = oldLoc with {
x = 2;
y = 2;
z *= 2;
};
https://openjdk.org/jeps/468
New JEP on implementing Withers for Java Records:
record Point(int x, int y, int z) { }
Point nextLoc = oldLoc with {
x = 2;
y = 2;
z *= 2;
};
https://openjdk.org/jeps/468