static IntPairTreeSet intPairTreeSetWithComparator(Comparator comparator) { ret new IntPairTreeSet { @Override public int compare(long a, long b) { ret comparator.compare(longToIntPair(a), longToIntPair(b)); } }; } ifclass LongComparator static IntPairTreeSet intPairTreeSetWithComparator(LongComparator comparator) { ret new IntPairTreeSet { @Override public int compare(long a, long b) { ret comparator.compare(a, b); } }; } endif