(Omit source code)
Implements Comparator.compare().paramo1 the first objectparamo2 the second objectreturn0, if both are equal, otherwise 1 if (o1 == null) { if (o2 == null) { return 1; } return 0; } return (o1.equals(o2)) ? 0 : 1;
if (o1 == null) { if (o2 == null) { return 1; } return 0; } return (o1.equals(o2)) ? 0 : 1;
Override Object.toString().returninformation about this comparator return "EqualComparator";
return "EqualComparator";