Class PlayersOnlineResolver

java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap<Long,Integer>
com.djrapitops.plan.delivery.domain.mutators.PlayersOnlineResolver
All Implemented Interfaces:
Serializable, Cloneable, Map<Long,Integer>, NavigableMap<Long,Integer>, SortedMap<Long,Integer>

public class PlayersOnlineResolver extends TreeMap<Long,Integer>
Resolves dates into players online numbers with a help of a NavigableMap.

Time Complexity of O(n / 2) with the use of TreeMap.

See Also:
  • Constructor Details

    • PlayersOnlineResolver

      public PlayersOnlineResolver(TPSMutator mutator)
  • Method Details

    • getOnlineOn

      public Optional<Integer> getOnlineOn(long date)
    • findLonelyJoins

      public int findLonelyJoins(List<Long> joinDates)
    • isServerOnline

      public boolean isServerOnline(long date, long timeLimit)