Class ElitePercentile
java.lang.Object
org.deltava.beans.stats.ElitePercentile
- All Implemented Interfaces:
Serializable, Comparable<ElitePercentile>, EliteTotals
public class ElitePercentile
extends Object
implements EliteTotals, Comparable<ElitePercentile>, Serializable
- Since:
- 9.2
- Version:
- 9.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ElitePercentile ep2) intReturns the distance flown.intgetLegs()Returns the number of flight legs.intintintReturns the number of Elite points.voidsetInfo(int legs, int distance, int pts) voidsetLevelPercentage(EliteLevel lvl, int pct) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface EliteTotals
hasDistance, hasLegs, hasPoints, isZeroModifier and TypeMethodDescriptiondefault booleanReturns if the distance flown is greater than zero.default booleanhasLegs()Returns if the number of flight lges is greater than zero.default booleanReturns if the number of Elite points is greater than zero.default booleanisZero()Returns if legs, distance and points are all zero.
-
Constructor Details
-
ElitePercentile
public ElitePercentile(int percentile) Creates the bean.- Parameters:
percentile- the percentile
-
-
Method Details
-
getPercentile
public int getPercentile() -
getLegs
public int getLegs()Description copied from interface:EliteTotalsReturns the number of flight legs.- Specified by:
getLegsin interfaceEliteTotals- Returns:
- the number of legs
-
getDistance
public int getDistance()Description copied from interface:EliteTotalsReturns the distance flown.- Specified by:
getDistancein interfaceEliteTotals- Returns:
- the distance in miles
-
getPoints
public int getPoints()Description copied from interface:EliteTotalsReturns the number of Elite points.- Specified by:
getPointsin interfaceEliteTotals- Returns:
- the number of points
-
getLevelPercentage
-
setInfo
public void setInfo(int legs, int distance, int pts) -
setLevelPercentage
-
compareTo
- Specified by:
compareToin interfaceComparable<ElitePercentile>
-