Typo and line wrapping from Dave.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2786 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -44,8 +44,7 @@ public class Comparators
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// now that we've filtered all nulls, compare the toString()s
|
// now that we've filtered all nulls, compare the toString()s
|
||||||
return String.CASE_INSENSITIVE_ORDER.compare(
|
return String.CASE_INSENSITIVE_ORDER.compare(o1.toString(), o2.toString());
|
||||||
o1.toString(), o2.toString());
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -71,7 +70,7 @@ public class Comparators
|
|||||||
/**
|
/**
|
||||||
* Returns the Comparator for Comparables, properly cast.
|
* Returns the Comparator for Comparables, properly cast.
|
||||||
*
|
*
|
||||||
* <p>This example illustates the type-safe way to obtain a natural-ordering Comparator:
|
* <p>This example illustrates the type-safe way to obtain a natural-ordering Comparator:
|
||||||
* <pre>
|
* <pre>
|
||||||
* Comparator<Integer> = Comparators.comparable();
|
* Comparator<Integer> = Comparators.comparable();
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|||||||
Reference in New Issue
Block a user