Class SessionBean.IdleTimeComparator

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

public static class SessionBean.IdleTimeComparator extends Object implements Comparator
Implements Comparator to enable sorting SessionBeans by their sessions idle time
Author:
ostwald
  • Constructor Details

    • IdleTimeComparator

      public IdleTimeComparator()
  • Method Details

    • 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