@API(value=EXPERIMENTAL) public class TimeWindowLeaderboard extends Object implements Comparable<TimeWindowLeaderboard>
Modifier and Type | Field and Description |
---|---|
static int |
ALL_TIME_LEADERBOARD_TYPE |
Modifier | Constructor and Description |
---|---|
|
TimeWindowLeaderboard(TimeWindowLeaderboardDirectory directory,
int type,
long startTimestamp,
long endTimestamp,
Tuple subspaceKey,
int nlevels) |
protected |
TimeWindowLeaderboard(TimeWindowLeaderboardDirectory directory,
TimeWindowLeaderboardProto.TimeWindowLeaderboard proto) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TimeWindowLeaderboard that) |
boolean |
containsTimestamp(long timestamp) |
boolean |
equals(Object o) |
TimeWindowLeaderboardDirectory |
getDirectory() |
long |
getEndTimestamp() |
int |
getNLevels() |
long |
getStartTimestamp() |
Tuple |
getSubspaceKey() |
int |
getType() |
int |
hashCode() |
boolean |
isHighScoreFirst() |
protected TimeWindowLeaderboardProto.TimeWindowLeaderboard.Builder |
toProto() |
public static final int ALL_TIME_LEADERBOARD_TYPE
public TimeWindowLeaderboard(@Nonnull TimeWindowLeaderboardDirectory directory, int type, long startTimestamp, long endTimestamp, @Nonnull Tuple subspaceKey, int nlevels)
protected TimeWindowLeaderboard(@Nonnull TimeWindowLeaderboardDirectory directory, @Nonnull TimeWindowLeaderboardProto.TimeWindowLeaderboard proto)
public TimeWindowLeaderboardDirectory getDirectory()
public boolean isHighScoreFirst()
public int getType()
public long getStartTimestamp()
public long getEndTimestamp()
public boolean containsTimestamp(long timestamp)
public int getNLevels()
public int compareTo(@Nonnull TimeWindowLeaderboard that)
compareTo
in interface Comparable<TimeWindowLeaderboard>
@Nonnull protected TimeWindowLeaderboardProto.TimeWindowLeaderboard.Builder toProto()