public class SpliteratorUtil extends Object
Spliterator
相关工具类Constructor and Description |
---|
SpliteratorUtil() |
Modifier and Type | Method and Description |
---|---|
static <F,T> Spliterator<T> |
trans(Spliterator<F> fromSpliterator,
Function<? super F,? extends T> function)
使用给定的转换函数,转换源
Spliterator 为新类型的Spliterator |
public static <F,T> Spliterator<T> trans(Spliterator<F> fromSpliterator, Function<? super F,? extends T> function)
Spliterator
为新类型的Spliterator
F
- 源元素类型T
- 目标元素类型fromSpliterator
- 源Spliterator
function
- 转换函数Spliterator
Copyright © 2024. All rights reserved.