Class HighScoreEntry


  • public class HighScoreEntry
    extends java.lang.Object
    A highscore entry.

    This class represents one entry in the game highscores database. A highscore entry has a given rank and is composed by a score and a performer name.
    See Also:
    HighScores
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String name
      The performer's name.
      int score
      The performer's s
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getRank()
      Get the rank of this Entry in the HighScores table.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
        The performer's name.
      • score

        public int score
        The performer's s
    • Constructor Detail

      • HighScoreEntry

        protected HighScoreEntry​(HighScores parent)
    • Method Detail

      • getRank

        public int getRank()
        Get the rank of this Entry in the HighScores table.
        Returns:
        score rank.