3 ms·
It's also implemented nicely, today, with Lombok: @Value @With public class Pair { int left; int right; } final Pair rightIs3
by stickfigure 6y ago
It's also implemented nicely, today, with Lombok:
@Value @With
public class Pair {
int left;
int right;
}
final Pair rightIs3 = somePair.withRight(3);