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/
H A DTabulatorsTest.java112 private final Function<T, K> keyFn; field in class:TabulatorsTest.ToMapAssertion
116 ToMapAssertion(Function<T, K> keyFn, argument
121 this.keyFn = keyFn;
128 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet());
132 K key = keyFn.apply(t);
134 .filter(e -> key.equals(keyFn.apply(e)))
399 Function<Integer, Integer> keyFn = i -> i * 2;
410 exerciseMapTabulation(data, toMap(keyFn, valueFn),
411 new ToMapAssertion<>(keyFn, valueF
[all...]

Completed in 52 milliseconds