Class PeriodByDatesComparator

java.lang.Object
be.gaudry.model.date.PeriodByDatesComparator
All Implemented Interfaces:
Comparator<IPeriod>

public class PeriodByDatesComparator extends Object implements Comparator<IPeriod>
Allows to compare periods.
  • The most important date is the start date; in case of same start dates, the end dates will be compared
  • A null start date is after any existing start date
  • A null end date is after any existing end date
Any null parameter will throw a NullPointerException, and trying to compare with other instances than IPeriod will throw a ClassCastException. Provided by the broldev.core.model project.
Since:
1.0 (Dec 4, 2010), broldev.core.model 0.0.1-SNAPSHOT dependency
Version:
1.0 (Dec 4, 2010)
Author:
Steph GAUDRY
  • Constructor Details

    • PeriodByDatesComparator

      public PeriodByDatesComparator()
  • Method Details