public class FightCollectors extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Long> |
countingPredicate(Predicate<T> predicate) |
static <A,B> Function<FNode<Fight<A,B>>,WinResult> |
fightResult(int myIndex,
A drawValue,
Function<FNode<Fight<A,B>>,A> winner) |
static <A,B,C> Collector<A,B,C> |
filteredCollector(Predicate<A> predicate,
Collector<A,B,C> collector) |
static <A,B> Indexer<Fight<A,B>> |
player1() |
static <A,B> Indexer<FNode<Fight<A,B>>> |
player2(int firstIndex) |
static Collector<WinResult,?,WinStats> |
stats() |
Copyright © 2015. All rights reserved.