public class AnalysisUtils extends Object
Constructor and Description |
---|
AnalysisUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
average(Collection<Long> list) |
static String |
getAverage(AnalysisType analysisType,
PluginData source,
List<UUID> uuids) |
static int |
getNewPlayers(List<Long> registered,
long scale,
long now) |
static String |
getTotal(AnalysisType analysisType,
PluginData source,
List<UUID> uuids) |
static boolean |
isActive(long lastPlayed,
long playTime,
int loginTimes) |
static List<Long> |
transformSessionDataToLengths(Collection<SessionData> data) |
public static boolean isActive(long lastPlayed, long playTime, int loginTimes)
lastPlayed
- playTime
- loginTimes
- public static int getNewPlayers(List<Long> registered, long scale, long now)
registered
- scale
- now
- public static List<Long> transformSessionDataToLengths(Collection<SessionData> data)
data
- public static long average(Collection<Long> list)
list
- public static String getTotal(AnalysisType analysisType, PluginData source, List<UUID> uuids)
analysisType
- source
- uuids
- public static String getAverage(AnalysisType analysisType, PluginData source, List<UUID> uuids)
analysisType
- source
- uuids
- Copyright © 2017. All rights reserved.