String () { boolean gt = matches(1); boolean eq = matches(0); boolean ls = matches(-1); if (gt) { if (eq) return ">="; if (ls) return "!="; return ">"; } if (ls) { if (eq) return "<="; return "<"; } return "=="; }