Package be.gaudry.model.date
Class PeriodByDatesComparator
java.lang.Object
be.gaudry.model.date.PeriodByDatesComparator
- All Implemented Interfaces:
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
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 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
-
PeriodByDatesComparator
public PeriodByDatesComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IPeriod>
-