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

Constructor Index

 o StringCompare()

Method Index

 o compare(Object, Object)
Compares two objects based on their string values.

Constructors

 o StringCompare
 public StringCompare()

Methods

 o 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