Package org.deltava.comparators
Class CalendarEntryComparator
java.lang.Object
org.deltava.comparators.CalendarEntryComparator
- All Implemented Interfaces:
Serializable
,Comparator<CalendarEntry>
public class CalendarEntryComparator
extends Object
implements Comparator<CalendarEntry>, Serializable
A Comparator for CalendarEntry beans.
- Since:
- 3.1
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new Comparator.CalendarEntryComparator
(boolean isReverse) Creates a new Comparator with an optional reverse sort. -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(CalendarEntry ce1, CalendarEntry ce2) Compares two CalendarEntry beans by comparing their dates.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CalendarEntryComparator
public CalendarEntryComparator()Creates a new Comparator. -
CalendarEntryComparator
public CalendarEntryComparator(boolean isReverse) Creates a new Comparator with an optional reverse sort.- Parameters:
isReverse
- TRUE if a reverse sort, otherwise FALSE
-
-
Method Details
-
compare
Compares two CalendarEntry beans by comparing their dates.- Specified by:
compare
in interfaceComparator<CalendarEntry>
-