mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
:trollface: make final
This commit is contained in:
parent
8f4662456a
commit
ded14796cf
@ -200,7 +200,7 @@ public interface TerminableWrappedStream<T, S extends TerminableWrappedStream<T,
|
||||
* @param <U> value类型
|
||||
* @return map
|
||||
*/
|
||||
default <U> Map<Integer, U> toIdxMap(Function<? super T, ? extends U> valueMapper) {
|
||||
default <U> Map<Integer, U> toIdxMap(final Function<? super T, ? extends U> valueMapper) {
|
||||
final MutableInt index = new MutableInt(NOT_FOUND_ELEMENT_INDEX);
|
||||
return EasyStream.of(toList()).toMap(e -> index.incrementAndGet(), valueMapper, (l, r) -> r);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user