1 2 3 4 5 6 7 8 9 10 11
// version 14: import lombok.EqualsAndHashCode; @EqualsAndHashCode record EqualsAndHashCodeOnRecord(String a, String b) { /* Implicit */ private final String a; /* Implicit */ private final String b; public EqualsAndHashCodeOnRecord(String a, String b) { super(); .a = a; .b = b; } }