Class EliteScoreEntry
java.lang.Object
org.deltava.beans.econ.EliteScoreEntry
- All Implemented Interfaces:
Serializable, Comparable<EliteScoreEntry>
A bean to store Flight Elite score entries.
- Since:
- 9.2
- Version:
- 9.2
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(EliteScoreEntry ese2) Returns the entry message.intReturns the number of points in this entry.intReturns the sequence number.booleanisBonus()Returns whether this is a bonus point entry.voidsetBonus(boolean isBonus) Updates whether this is a bonus point entry.toString()
-
Constructor Details
-
EliteScoreEntry
EliteScoreEntry(int seq, int score, String msg) Creates the bean.- Parameters:
seq- the sequence numberscore- the score points for this entrymsg- the message
-
-
Method Details
-
getSequence
public int getSequence()Returns the sequence number.- Returns:
- the sequence
-
getPoints
public int getPoints()Returns the number of points in this entry.- Returns:
- the number of points
-
getMessage
-
isBonus
public boolean isBonus()Returns whether this is a bonus point entry.- Returns:
- TRUE if bonus points, otherwise FALSE
-
setBonus
public void setBonus(boolean isBonus) Updates whether this is a bonus point entry.- Parameters:
isBonus- TRUE if bonus points, otherwise FALSE
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<EliteScoreEntry>
-