Searched refs:keyFn (Results 1 – 1 of 1) sorted by relevance
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 112 private final Function<T, K> keyFn; field in TabulatorsTest.ToMapAssertion 116 ToMapAssertion(Function<T, K> keyFn, in ToMapAssertion() argument 121 this.keyFn = keyFn; in ToMapAssertion() 128 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet()); in assertValue() 132 K key = keyFn.apply(t); in assertValue() 134 .filter(e -> key.equals(keyFn.apply(e))) in assertValue() 399 Function<Integer, Integer> keyFn = i -> i * 2; 410 exerciseMapTabulation(data, toMap(keyFn, valueFn), 411 new ToMapAssertion<>(keyFn, valueFn, op, HashMap.class)); 420 exerciseMapTabulation(data, toMap(keyFn, valueFn, op), [all …]
|