org.dlese.dpc.repository
Class SetInfo.NumIndexingErrorsComparator
java.lang.Object
org.dlese.dpc.repository.SetInfo.NumIndexingErrorsComparator
- All Implemented Interfaces:
- Comparator
- Enclosing class:
- SetInfo
public static class SetInfo.NumIndexingErrorsComparator
- extends Object
- implements Comparator
Implements Comparator to enable sorting by numIndexingErrors.
- Author:
- John Weatherley
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SetInfo.NumIndexingErrorsComparator
public SetInfo.NumIndexingErrorsComparator()
compare
public int compare(Object O1,
Object O2)
throws ClassCastException
- Campares the numIndexingErrors field.
- Specified by:
compare
in interface Comparator
- Parameters:
O1
- A SetInfo ObjectO2
- 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