FileDocCategorySizeDatePackage
BaseSessionComparator.javaAPI DocApache Tomcat 6.0.141653Fri Jul 20 04:20:30 BST 2007org.apache.catalina.manager.util

BaseSessionComparator

public abstract class BaseSessionComparator extends Object implements Comparator
Comparator which permits to compare on a session's content
author
Cédrik LIME

Fields Summary
Constructors Summary
public BaseSessionComparator()

        super();
    
Methods Summary
public final intcompare(java.lang.Object o1, java.lang.Object o2)

        Comparable c1 = getComparableObject((Session)o1);
        Comparable c2 = getComparableObject((Session)o2);
        return c1==null ? (c2==null ? 0 : -1) : (c2==null ? 1 : c1.compareTo(c2));
    
public abstract java.lang.ComparablegetComparableObject(org.apache.catalina.Session session)