Interface EliteTotals
- All Known Implementing Classes:
EliteLevel
,EliteLifetime
,ElitePercentile
,FlightEliteScore
,RolloverYearlyTotal
,YearlyTotal
public interface EliteTotals
An interface to describe beans that store Elite program totals.
- Since:
- 9.2
- Version:
- 11.1
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compare
(EliteTotals et1, EliteTotals et2) Compares two EliteEotal beans by comparing their legs, distance and points.int
Returns the distance flown.int
getLegs()
Returns the number of flight legs.int
Returns the number of Elite points.default boolean
isZero()
Returns if legs, distance and points are all zero.
-
Method Details
-
getLegs
int getLegs()Returns the number of flight legs.- Returns:
- the number of legs
-
getDistance
int getDistance()Returns the distance flown.- Returns:
- the distance in miles
-
getPoints
int getPoints()Returns the number of Elite points.- Returns:
- the number of points
-
isZero
default boolean isZero()Returns if legs, distance and points are all zero.- Returns:
- TRUE if all are zero, otherwise FALSE
-
compare
Compares two EliteEotal beans by comparing their legs, distance and points.- Parameters:
et1
- the first EliteTotals beanet2
- the second EliteTotals bean- Returns:
- a comparison result
-