static int charToIntOrMinus1(Char c) { ret c == null ? -1 : (int) c; } static int charToIntOrMinus1(CharSequence s) { ret empty(s) ? -1 : (int) s.charAt(0); }