Class RetentionData
- java.lang.Object
-
- com.djrapitops.plan.delivery.domain.mutators.RetentionData
-
public class RetentionData extends java.lang.Object
Utility class for player retention calculations.Previously known as StickyData.
-
-
Constructor Summary
Constructors Constructor Description RetentionData(double activityIndex, double onlineOnJoin)
RetentionData(PlayerContainer player, PlayersOnlineResolver onlineOnJoin, long activityMsThreshold)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RetentionData
average(java.util.Collection<RetentionData> stuck)
static int
countRetentionPrediction(java.util.Collection<ActivityIndex> newPlayers, ActivityIndex retained, ActivityIndex nonRetained)
double
distance(RetentionData data)
boolean
equals(java.lang.Object o)
double
getActivityIndex()
double
getOnlineOnJoin()
int
hashCode()
-
-
-
Constructor Detail
-
RetentionData
public RetentionData(double activityIndex, double onlineOnJoin)
-
RetentionData
public RetentionData(PlayerContainer player, PlayersOnlineResolver onlineOnJoin, long activityMsThreshold)
-
-
Method Detail
-
average
public static RetentionData average(java.util.Collection<RetentionData> stuck)
-
countRetentionPrediction
public static int countRetentionPrediction(java.util.Collection<ActivityIndex> newPlayers, ActivityIndex retained, ActivityIndex nonRetained)
-
distance
public double distance(RetentionData data)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getOnlineOnJoin
public double getOnlineOnJoin()
-
getActivityIndex
public double getActivityIndex()
-
-