static int compareChars(CharComparator comp, char a, char b) { ret comp == null ? a-b : comp.compare(a, b); }