Package org.dlese.dpc.repository
Class SetInfo.FormatComparator
java.lang.Object
org.dlese.dpc.repository.SetInfo.FormatComparator
- All Implemented Interfaces:
Comparator
- Enclosing class:
SetInfo
Implements Comparator to enable sorting by format.
- Author:
- John Weatherley
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
FormatComparator
public FormatComparator()
-
-
Method Details
-
compare
Campares the format field.- Specified by:
comparein interfaceComparator- 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
-