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 TypeMethodDescriptionint
compareTo
(EliteLifetime el2) Returns the object ID for this auditable object.getCode()
Returns the status level abbreviation.int
getColor()
Returns the RGB color.int
Returns the distance flown.int
getLegs()
Returns the number of flight legs.getLevel()
Returns the Elite status level.getName()
Returns the status level name.int
Returns the number of Elite points.int
hashCode()
void
Updates the abbreviation of this status level.void
setDistance
(int d) Updates the number of lifetime flight distance required for this status.void
setLegs
(int l) Updates the number of lifetime flight legs required for this status.void
setLevel
(EliteLevel lvl) Updates the Elite status level.void
Updates the name of this status level.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.deltava.beans.Auditable
getAuditType, isCrossApp
Methods inherited from interface org.deltava.beans.econ.EliteLevelBean
overridenBy
Methods inherited from interface org.deltava.beans.econ.EliteTotals
isZero
Methods inherited from interface org.deltava.beans.RGBColor
getHexColor
-
Constructor Details
-
EliteLifetime
-
-
Method Details
-
getName
-
getCode
-
getLegs
public int getLegs()Description copied from interface:EliteTotals
Returns the number of flight legs.- Specified by:
getLegs
in interfaceEliteTotals
- Returns:
- the number of legs
-
getDistance
public int getDistance()Description copied from interface:EliteTotals
Returns the distance flown.- Specified by:
getDistance
in interfaceEliteTotals
- Returns:
- the distance in miles
-
getPoints
public int getPoints()Description copied from interface:EliteTotals
Returns the number of Elite points.- Specified by:
getPoints
in interfaceEliteTotals
- Returns:
- the number of points
-
getColor
-
getLevel
Description copied from interface:EliteLevelBean
Returns the Elite status level.- Specified by:
getLevel
in interfaceEliteLevelBean
- Returns:
- the EliteLevel
-
setLevel
Description copied from interface:EliteLevelBean
Updates the Elite status level.- Specified by:
setLevel
in 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:Auditable
Returns the object ID for this auditable object.- Specified by:
getAuditID
in interfaceAuditable
- Returns:
- the ID
-
hashCode
-
compareTo
- Specified by:
compareTo
in interfaceComparable<EliteLifetime>
-