Class LegHoursStatsEntry<K extends Comparable<K>>
java.lang.Object
org.deltava.beans.stats.LegHoursStatsEntry<K>
- Type Parameters:
K- The sort key
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LegHoursDateStatsEntry,OnlineStatsEntry
A bean to store ordered statistics entries that contain a key value plus hours/legs/distance.
- Since:
- 8.3
- Version:
- 10.3
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDistance(K key) Returns the flight distance for a particular key.doubleReturns the number of flight hours for a particular key.getKeys()Returns tthe available keys.intReturns the number of flight legs for a particular key.protected KReturns the maximum key value in this bean.protected voidAdds to an existing statistics entry.protected voidAdds a statistics entry.
-
Constructor Details
-
LegHoursStatsEntry
LegHoursStatsEntry()
-
-
Method Details
-
getKeys
-
getLegs
Returns the number of flight legs for a particular key.- Parameters:
key- the key value- Returns:
- the number of legs
-
getDistance
Returns the flight distance for a particular key.- Parameters:
key- the key value- Returns:
- the distance in miles
-
getHours
Returns the number of flight hours for a particular key.- Parameters:
key- the key value- Returns:
- the number of hours
-
getMaxKey
-
set
Adds a statistics entry.- Parameters:
key- the keylegs- the number of flight legsdistance- the flight distance in mileshours- the number of flight hours
-
inc
Adds to an existing statistics entry.- Parameters:
key- the keydistance- the flight distance in mileshours- the number of flight hours
-