@API(value=EXPERIMENTAL) public class TimeWindowLeaderboardDirectory extends Object
Modifier | Constructor and Description |
---|---|
|
TimeWindowLeaderboardDirectory(boolean highScoreFirst) |
protected |
TimeWindowLeaderboardDirectory(TimeWindowLeaderboardProto.TimeWindowLeaderboardDirectory proto) |
Modifier and Type | Method and Description |
---|---|
void |
addLeaderboard(int type,
long startTimestamp,
long endTimestamp,
int nlevels) |
protected void |
addLeaderboard(TimeWindowLeaderboard leaderboard) |
void |
addSubDirectory(TimeWindowLeaderboardSubDirectory subdir) |
TimeWindowLeaderboard |
findLeaderboard(int type,
long startTimestamp,
long endTimestamp) |
Map<Integer,Collection<TimeWindowLeaderboard>> |
getLeaderboards() |
TimeWindowLeaderboardSubDirectory |
getSubDirectory(Tuple subdir) |
long |
getUpdateTimestamp() |
boolean |
isHighScoreFirst() |
TimeWindowLeaderboard |
oldestLeaderboardMatching(int type,
long timestamp) |
void |
setUpdateTimestamp(long updateTimestamp) |
TimeWindowLeaderboardProto.TimeWindowLeaderboardDirectory |
toProto() |
public TimeWindowLeaderboardDirectory(boolean highScoreFirst)
protected TimeWindowLeaderboardDirectory(TimeWindowLeaderboardProto.TimeWindowLeaderboardDirectory proto)
public long getUpdateTimestamp()
public void setUpdateTimestamp(long updateTimestamp)
public boolean isHighScoreFirst()
public Map<Integer,Collection<TimeWindowLeaderboard>> getLeaderboards()
@Nullable public TimeWindowLeaderboard oldestLeaderboardMatching(int type, long timestamp)
@Nullable public TimeWindowLeaderboard findLeaderboard(int type, long startTimestamp, long endTimestamp)
public void addLeaderboard(int type, long startTimestamp, long endTimestamp, int nlevels)
protected void addLeaderboard(TimeWindowLeaderboard leaderboard)
@Nullable public TimeWindowLeaderboardSubDirectory getSubDirectory(@Nonnull Tuple subdir)
public void addSubDirectory(@Nonnull TimeWindowLeaderboardSubDirectory subdir)
@Nonnull public TimeWindowLeaderboardProto.TimeWindowLeaderboardDirectory toProto()