static Pair pair(A a, B b) { ret new Pair(a, b); } static Pair pair(A a) { ret new Pair(a, a); }