Class LandingStatsEntry
java.lang.Object
org.deltava.beans.stats.LegHoursStatsEntry<LandingRating>
org.deltava.beans.stats.LegHoursDateStatsEntry<LandingRating>
org.deltava.beans.stats.LandingStatsEntry
- All Implemented Interfaces:
Serializable
A bean to store Landing Rating statistics entries.
- Since:
- 11.0
- Version:
- 11.0
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int score, int distance, double hours) Adds a landing to the statistics entryMethods inherited from class LegHoursDateStatsEntry
getDate, hashCodeMethods inherited from class LegHoursStatsEntry
getDistance, getHours, getKeys, getLegs, getMaxKey, inc, setModifier and TypeMethodDescriptionintgetDistance(LandingRating key) Returns the flight distance for a particular key.doublegetHours(LandingRating key) Returns the number of flight hours for a particular key.getKeys()Returns tthe available keys.intgetLegs(LandingRating key) Returns the number of flight legs for a particular key.protected LandingRatingReturns the maximum key value in this bean.protected voidinc(LandingRating key, int distance, double hours) Adds to an existing statistics entry.protected voidset(LandingRating key, int legs, int distance, double hours) Adds a statistics entry.
-
Constructor Details
-
LandingStatsEntry
-
-
Method Details
-
add
public void add(int score, int distance, double hours) Adds a landing to the statistics entry- Parameters:
score- the landing scoredistance- the flight distance in mileshours- the flight hours
-