Package com.treescrub.spedran.data
Class LeaderboardRun
- java.lang.Object
-
- com.treescrub.spedran.data.Resource
-
- com.treescrub.spedran.data.LeaderboardRun
-
public class LeaderboardRun extends Resource
A run on a leaderboard. Has a place on the leaderboard and the associated run.
This class is immutable and thread-safe.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPlace()Gets the ranking/place of the run.RungetRun()Gets the associated run.StringtoString()
-
-
-
Method Detail
-
getPlace
public int getPlace()
Gets the ranking/place of the run. Leaderboard runs that are part of the same leaderboard can have duplicate places.- Returns:
- the placement of this run on the leaderboard
-
getRun
public Run getRun()
Gets the associated run.- Returns:
- the run
-
-