public class PlayerContainer
extends java.lang.Object
The actual object is wrapped to avoid exposing too much API that might change.
See PlayerKeys
for Key objects.
The Keys might change in the future, but the Optional API should help dealing with those cases.
Constructor and Description |
---|
PlayerContainer(PlayerContainer container) |
Modifier and Type | Method and Description |
---|---|
double |
getActivityIndex(long date,
long playtimeMsThreshold,
int loginThreshold) |
<T> java.util.Optional<T> |
getValue(Key<T> key) |
boolean |
playedBetween(long after,
long before) |
public PlayerContainer(PlayerContainer container)
public double getActivityIndex(long date, long playtimeMsThreshold, int loginThreshold)
public boolean playedBetween(long after, long before)
public <T> java.util.Optional<T> getValue(Key<T> key)