public class RatingContext<P> extends Object
| Constructor and Description |
|---|
RatingContext(Function<P,Double> startingRatings) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFight(P player1,
P player2,
WinResult result) |
<A> Map<P,Double> |
calculateRatings(Stream<A> fightStream,
Function<A,P> who1,
Function<A,P> who2,
Function<A,WinResult> ratingCalc) |
void |
clearRating(P player) |
void |
setRating(P player,
double rating) |
Copyright © 2014. All rights reserved.