/**
 * Last modified: 12 23 2003
 *
 * @author Takayuki Hoshi <hoshi103@chapman.edu>
 * 
 *
 */
 
public class StringCompare implements Compare{

	private static final boolean DEBUG = true;

    /**
     * doCompare
     *
     * @param  obj1 first object to compare.
     * @param  obj2 second object to compare.
     * @return -1 if obj1 < obj2, 0 if obj1 == obj2, 1 if obj1 > obj2.
     */
    public int doCompare(Object obj1, Object obj2) {
        return ((String) obj1).compareTo( (String) obj2);
	}
}
