DLESE Tools
v1.6.0

org.dlese.dpc.repository
Class SetInfo.NumDeletedComparator

java.lang.Object
  extended by org.dlese.dpc.repository.SetInfo.NumDeletedComparator
All Implemented Interfaces:
Comparator
Enclosing class:
SetInfo

public static class SetInfo.NumDeletedComparator
extends Object
implements Comparator

Implements Comparator to enable sorting by numDeleted.

Author:
John Weatherley

Constructor Summary
SetInfo.NumDeletedComparator()
           
 
Method Summary
 int compare(Object O1, Object O2)
          Campares the numDeleted 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

SetInfo.NumDeletedComparator

public SetInfo.NumDeletedComparator()
Method Detail

compare

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

Specified by:
compare in interface Comparator
Parameters:
O1 - A SetInfo Object
O2 - A SetInfo 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 SetInfo

DLESE Tools
v1.6.0