public class PlayersOnlineResolver
extends java.util.TreeMap<java.lang.Long,java.lang.Integer>
Time Complexity of O(n / 2) with the use of TreeMap.
Constructor and Description |
---|
PlayersOnlineResolver(TPSMutator mutator) |
Modifier and Type | Method and Description |
---|---|
int |
findLonelyJoins(java.util.List<java.lang.Long> joinDates) |
java.util.Optional<java.lang.Integer> |
getOnlineOn(long date) |
boolean |
isServerOnline(long date,
long timeLimit) |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
public PlayersOnlineResolver(TPSMutator mutator)