All Packages Class Hierarchy This Package Previous Next Index
Class com.roguewave.tools.v2-0.StringCompare
java.lang.Object
|
+----com.roguewave.tools.v2-0.StringCompare
- public class StringCompare
- extends Object
- implements Comparator, Serializable
Class StringCompare implements the Comparator interface
and is particularly suited for the String, StringBuffer,
and Character classes from package java.lang. Comparison of
objects is based on their string values, that is,
objects are converted to Strings before being compared.
- See Also:
- BinaryTree, BTree
-
StringCompare()
-
-
compare(Object, Object)
- Compares two objects based on their string values.
StringCompare
public StringCompare()
compare
public int compare(Object s,
Object t)
- Compares two objects based on their string values.
- Returns:
- s.toString().compareTo(t.toString())
All Packages Class Hierarchy This Package Previous Next Index