equal
deleted
inserted
replaced
226 return intersection; |
226 return intersection; |
227 } |
227 } |
228 |
228 |
229 public static <I, T> Map<I, T> indexBy(Collection<? extends T> c, |
229 public static <I, T> Map<I, T> indexBy(Collection<? extends T> c, |
230 Function<? super T, ? extends I> indexFunction) { |
230 Function<? super T, ? extends I> indexFunction) { |
231 return c.stream().collect(Collectors.toMap(indexFunction, o -> o)); |
231 return c.stream().collect(Collectors.<T, I, T>toMap(indexFunction, o -> o)); |
232 } |
232 } |
233 } |
233 } |