Class EliteScoreEntry

java.lang.Object
org.deltava.beans.econ.EliteScoreEntry
All Implemented Interfaces:
Serializable, Comparable<EliteScoreEntry>

public class EliteScoreEntry extends Object implements Serializable, Comparable<EliteScoreEntry>
A bean to store Flight Elite score entries.
Since:
9.2
Version:
9.2
Author:
Luke
See Also:
  • Constructor Details

    • EliteScoreEntry

      EliteScoreEntry(int seq, int score, String msg)
      Creates the bean.
      Parameters:
      seq - the sequence number
      score - the score points for this entry
      msg - 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

      public String getMessage()
      Returns the entry message.
      Returns:
      the message
    • 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

      public String toString()
      Overrides:
      toString in class Object
    • compareTo

      public int compareTo(EliteScoreEntry ese2)
      Specified by:
      compareTo in interface Comparable<EliteScoreEntry>