org.jfin.date
Class ScheduleCutterPeriodComparator
- java.lang.Object
-
- org.jfin.date.ScheduleCutterPeriodComparator
-
- All Implemented Interfaces:
- java.util.Comparator<Period>
public class ScheduleCutterPeriodComparator extends java.lang.Object implements java.util.Comparator<Period>
Provides a comparator for sorting periods into order ready for cutting. This differs from the default comparison provided in the implementation of comparable on the Period class in that: 1. It relies only on the startCalendar of the Period 2. It is used explicitly by the ScheduleCutter and so cannot be overriden This allows the ScheduleCutter to be fully isolated from the implementation of subclasses of Period.
-
-
Constructor Summary
Constructors Constructor and Description ScheduleCutterPeriodComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intcompare(Period period1, Period period2)
-
DataMelt 3.0 © DataMelt by jWork.ORG