DLESE Tools
v1.6.0

org.dlese.dpc.schemedit
Class SessionBean.IdComparator

java.lang.Object
  extended by org.dlese.dpc.schemedit.SessionBean.IdComparator
All Implemented Interfaces:
Comparator
Enclosing class:
SessionBean

public static class SessionBean.IdComparator
extends Object
implements Comparator

Implements Comparator to enable sorting by session id.

Author:
ostwald

Constructor Summary
SessionBean.IdComparator()
           
 
Method Summary
 int compare(Object O1, Object O2)
          Campares the session id field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SessionBean.IdComparator

public SessionBean.IdComparator()
Method Detail

compare

public int compare(Object O1,
                   Object O2)
            throws ClassCastException
Campares the session id field.

Specified by:
compare in interface Comparator
Parameters:
O1 - A SessionBean Object
O2 - A SessionBean Object
Returns:
A negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Throws:
ClassCastException - If Object is not DcsSetInfo

DLESE Tools
v1.6.0