java.lang.Object
com.flexganttfx.model.util.ActivityComparator
- All Implemented Interfaces:
Comparator<Activity>
A specialized comparator used for sorting activities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static ActivityComparator
Returns the singleton instance of the comparator.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
-
ActivityComparator
public ActivityComparator()
-
-
Method Details
-
getInstance
Returns the singleton instance of the comparator.- Returns:
- the comparator singleton
-
compare
- Specified by:
compare
in interfaceComparator<Activity>
-