Class EliteLifetime
java.lang.Object
org.deltava.beans.econ.EliteLifetime
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<EliteLifetime>,Auditable,EliteLevelBean,EliteTotals,RGBColor
public class EliteLifetime
extends Object
implements Auditable, EliteLevelBean, EliteTotals, Comparable<EliteLifetime>
A bean to store lifetime Elite status levels.
- Since:
- 11.5
- Version:
- 11.5
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(EliteLifetime el2) Returns the object ID for this auditable object.getCode()Returns the status level abbreviation.intgetColor()Returns the RGB color.intReturns the distance flown.intgetLegs()Returns the number of flight legs.getLevel()Returns the Elite status level.getName()Returns the status level name.intReturns the number of Elite points.inthashCode()voidUpdates the abbreviation of this status level.voidsetDistance(int d) Updates the number of lifetime flight distance required for this status.voidsetLegs(int l) Updates the number of lifetime flight legs required for this status.voidsetLevel(EliteLevel lvl) Updates the Elite status level.voidUpdates the name of this status level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossAppMethods inherited from interface org.deltava.beans.econ.EliteLevelBean
overridenByMethods inherited from interface org.deltava.beans.econ.EliteTotals
isZeroMethods inherited from interface org.deltava.beans.RGBColor
getHexColor
-
Constructor Details
-
EliteLifetime
-
-
Method Details
-
getName
-
getCode
-
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
-
getColor
-
getLevel
Description copied from interface:EliteLevelBeanReturns the Elite status level.- Specified by:
getLevelin interfaceEliteLevelBean- Returns:
- the EliteLevel
-
setLevel
Description copied from interface:EliteLevelBeanUpdates the Elite status level.- Specified by:
setLevelin interfaceEliteLevelBean- Parameters:
lvl- the EliteLevel
-
setLegs
public void setLegs(int l) Updates the number of lifetime flight legs required for this status.- Parameters:
l- the number of legs
-
setDistance
public void setDistance(int d) Updates the number of lifetime flight distance required for this status.- Parameters:
d- the distance in miles
-
setName
Updates the name of this status level.- Parameters:
name- the level name- Throws:
NullPointerException- if name is null
-
setCode
Updates the abbreviation of this status level.- Parameters:
c- the code- Throws:
NullPointerException- if name is null
-
getAuditID
Description copied from interface:AuditableReturns the object ID for this auditable object.- Specified by:
getAuditIDin interfaceAuditable- Returns:
- the ID
-
hashCode
-
compareTo
- Specified by:
compareToin interfaceComparable<EliteLifetime>
-