Documentation of 'org.jfin.date.ScheduleCutterPeriodComparator' Java class
ScheduleCutterPeriodComparator
org.jfin.date

Class 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(Period period1, Period period2) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ScheduleCutterPeriodComparator

        public ScheduleCutterPeriodComparator()
    • Method Detail

      • compare

        public int compare(Period period1,
                           Period period2)
        Specified by:
        compare in interface java.util.Comparator<Period>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.