Searched refs:keyFn (Results 1 – 3 of 3) 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 …]
|
D | CollectorsTest.java | 171 private final Function<T, K> keyFn; field in CollectorsTest.ToMapAssertion 175 ToMapAssertion(Function<T, K> keyFn, in ToMapAssertion() argument 180 this.keyFn = keyFn; in ToMapAssertion() 189 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet()); in assertValue() 192 K key = keyFn.apply(t); in assertValue() 194 .filter(e -> key.equals(keyFn.apply(e))) in assertValue() 478 Function<Integer, Integer> keyFn = i -> i * 2; 489 exerciseMapCollection(data, toMap(keyFn, valueFn), 490 new ToMapAssertion<>(keyFn, valueFn, op, HashMap.class)); 499 exerciseMapCollection(data, toMap(keyFn, valueFn, op), [all …]
|
/libcore/ojluni/src/test/java/util/stream/Collectors/ |
D | CollectorsTest.java | 174 private final Function<T, K> keyFn; field in CollectorsTest.ToMapAssertion 178 ToMapAssertion(Function<T, K> keyFn, in ToMapAssertion() argument 183 this.keyFn = keyFn; in ToMapAssertion() 192 Set<K> uniqueKeys = source.get().map(keyFn).collect(toSet()); in assertValue() 195 K key = keyFn.apply(t); in assertValue() 197 .filter(e -> key.equals(keyFn.apply(e))) in assertValue() 460 Function<Integer, Integer> keyFn = i -> i * 2; 471 exerciseMapCollection(data, toMap(keyFn, valueFn), 472 new ToMapAssertion<>(keyFn, valueFn, op, HashMap.class)); 481 exerciseMapCollection(data, toMap(keyFn, valueFn, op), [all …]
|