org.gnu.jcifs
Class SessionComparator

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

class SessionComparator
extends java.lang.Object
implements Comparator


Field Summary
(package private)  java.text.Collator fCollator
           
(package private)  int fSort
           
 
Constructor Summary
SessionComparator(int sort)
           
 
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
 

Field Detail

fCollator

java.text.Collator fCollator

fSort

int fSort
Constructor Detail

SessionComparator

public SessionComparator(int sort)
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