Package org.deltava.comparators
Class RunwayComparator
java.lang.Object
org.deltava.comparators.RunwayComparator
- All Implemented Interfaces:
Serializable
,Comparator<Runway>
A comparator to sort Runways based on appropriateness based on a wind heading.
- Since:
- 2.6
- Version:
- 11.1
- Author:
- Luke
- See Also:
-
Constructor Summary
ConstructorDescriptionRunwayComparator
(int windHdg, int windSpeed, boolean compareUse) Initializes the Comparator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
RunwayComparator
public RunwayComparator(int windHdg, int windSpeed, boolean compareUse) Initializes the Comparator.- Parameters:
windHdg
- the wind heading in degreeswindSpeed
- the wind speed in knotscompareUse
- TRUE if usage stats should be used if available, otherwise FALSE
-
-
Method Details
-
toString
-
hashCode