int function ( Object arg0 , Object arg1 ) { return collator . compare ( arg0 , arg1 ) ; }
compares its two arguments for order . returns a negative integer , zero , or a positive integer as the first argument is less than , equal to , or greater than the second . the implementor must ensure that sgn compare x , y == - sgn compare y , x for all x and y. this implies that compare x , y must throw an exception if and only if compare y , x throws an exception . the implementor must also ensure that the relation is transitive : compare x , y > 0 & & compare y , z > 0 implies compare x , z > 0 . finally , the implementer must ensure that compare x , y == 0 implies that sgn compare x , z == sgn compare y , z for all z . it is generally the case , but not strictly required that compare x , y == 0 == x.equals y . generally speaking , any comparator that violates this condition should clearly indicate this fact . the recommended language is `` note : this comparator imposes orderings that are inconsistent with equals . '' concode_field_sep RuleBasedCollator collator concode_field_sep boolean contains concode_elem_sep boolean collationContains concode_elem_sep boolean endsWith concode_elem_sep boolean comparesEqual concode_elem_sep String substringAfter concode_elem_sep void main concode_elem_sep String substringBefore concode_elem_sep boolean collationStartsWith concode_elem_sep boolean startsWith