Is there a good reason why there is no Pair in Java? What would be the equivalent of this C++ construct? I would rather avoid reimplementing my own.<
Pair
another terse lombok implementation
import lombok.Value; @Value(staticConstructor = "of") public class Pair { private final F first; private final S second; }