public class HighscoreEntry extends Object implements Serializable, Comparable<HighscoreEntry>
Constructor and Description |
---|
HighscoreEntry(int points,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(HighscoreEntry o) |
String |
getName() |
int |
getPoints() |
void |
setName(String name) |
void |
setPoints(int points) |
String |
toString() |
public HighscoreEntry(int points, String name)
public int getPoints()
public void setPoints(int points)
public String getName()
public void setName(String name)
public int compareTo(HighscoreEntry o)
compareTo
in interface Comparable<HighscoreEntry>
Copyright © 2017. All rights reserved.