org.gnu.jcifs.util
Class StringComparator

java.lang.Object
  |
  +--org.gnu.jcifs.util.StringComparator
All Implemented Interfaces:
Comparator

class StringComparator
extends java.lang.Object
implements Comparator


Constructor Summary
(package private) StringComparator()
           
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compare to another comparable object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringComparator

StringComparator()
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Description copied from interface: Comparator
Compare to another comparable object. If return value is negative, then we're less than object. If return value is zero, then we're equal to object. If return value is positive, then we're greater than object. Feel free to throw a RunTimeException of some sort if object is not of the same class.
Specified by:
compare in interface Comparator