org.aris.actionservlet
Class ActionServletCompare

java.lang.Object
  extended by org.aris.actionservlet.ActionServletCompare
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public class ActionServletCompare
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

A class containing comparison functions

Author:
Aris
See Also:
Serialized Form

Constructor Summary
ActionServletCompare()
          Creates a new instance of actionCompare
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare 2 strings.
 boolean equals(java.lang.Object o)
          Needed by servlet engine.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionServletCompare

public ActionServletCompare()
Creates a new instance of actionCompare

Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compare 2 strings.

Specified by:
compare in interface java.util.Comparator
Parameters:
o1 - First string
o2 - Second string
Returns:
o1.compareTo(o2). If o1==null then o2>o1. If o2==null then o1>o2. If object(o1)=object(o2) then o1==o2.

equals

public boolean equals(java.lang.Object o)
Needed by servlet engine.

Specified by:
equals in interface java.util.Comparator
Overrides:
equals in class java.lang.Object
Parameters:
o - -
Returns:
-