Y
Hacker News
new
|
ask
|
show
|
jobs
by
stickfigure
1866 days ago
It's also implemented nicely, today, with Lombok:
@Value @With public class Pair { int left; int right; } final Pair rightIs3 = somePair.withRight(3);