4 ms·
You can go even further with Java 16, which came out last month. record Point(int x, int y) { } No lombok needed. That is the same code, but it also has e
by mabbo 6y ago
You can go even further with Java 16, which came out last month.
record Point(int x, int y) { }
No lombok needed. That is the same code, but it also has equals and hashCode methods.
https://openjdk.java.net/jeps/395 https://openjdk.java.net/jeps/395