Class PlayersMutator
java.lang.Object
com.djrapitops.plan.delivery.domain.mutators.PlayersMutator
Mutator for a bunch of
PlayerContainer
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionall()
int
averageNewPerDay
(TimeZone timeZone) compareAndFindThoseLikelyToBeRetained
(Iterable<PlayerContainer> compareTo, long dateLimit, PlayersOnlineResolver onlineResolver, long activityMsThreshold) Compares players in the mutator to other players in terms of player retention.static PlayersMutator
copyOf
(PlayersMutator mutator) int
count()
filterActive
(long date, long msThreshold, double limit) <T extends Predicate<PlayerContainer>>
PlayersMutatorfilterBy
(T by) filterPlayedBetween
(long after, long before) filterPlayedOnServer
(ServerUUID serverUUID) filterRegisteredBetween
(long after, long before) filterRetained
(long after, long before) getPingPerCountry
(ServerUUID serverUUID) pings()
toActivityDataMap
(long date, long msThreshold) uuids()
-
Constructor Details
-
Method Details
-
copyOf
-
filterBy
-
filterPlayedBetween
-
filterRegisteredBetween
-
filterRetained
-
filterActive
-
filterPlayedOnServer
-
all
-
registerDates
-
getGeolocations
-
getPingPerCountry
-
toActivityDataMap
-
count
public int count() -
averageNewPerDay
-
newPerDay
-
compareAndFindThoseLikelyToBeRetained
public PlayersMutator compareAndFindThoseLikelyToBeRetained(Iterable<PlayerContainer> compareTo, long dateLimit, PlayersOnlineResolver onlineResolver, long activityMsThreshold) Compares players in the mutator to other players in terms of player retention.- Parameters:
compareTo
- Players to compare to.dateLimit
- Epoch ms back limit, if the player registered after this their value is not used.onlineResolver
- Thing that figures out how many players were online at different dates.activityMsThreshold
- Threshold for activity index calculation.- Returns:
- Mutator containing the players that are considered to be retained.
- Throws:
IllegalStateException
- If all players are rejected due to dateLimit.
-
getSessions
-
uuids
-
operators
-
pings
-