public class Reducers extends Object
| 构造器和说明 |
|---|
Reducers() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Reducer<T,Boolean> |
allMatch(java.util.function.Predicate<T> predicate)
Build a AllMatch Reducer
|
static <T> Reducer<T,Boolean> |
AllMatchNotEmpty(java.util.function.Predicate<T> predicate)
Build a AllMatchNotEmpty Reducer.
|
static <T> Reducer<T,Boolean> |
anyMatch(java.util.function.Predicate<T> predicate)
Build a AnyMatch Reducer.
|
static <T> Reducer<T,T> |
firstOf()
Build a FirstOf Reducer.
|
static <T> Reducer<T,T> |
firstOf(java.util.function.Predicate<T> predicate)
Build a FirstOf Reducer.
|
static <T> Reducer<List<T>,List<T>> |
flatList(java.util.function.Predicate<List<T>> predicate)
Build a FlatList Reducer.
|
static <K,V> Reducer<Map<K,V>,Map<K,V>> |
flatMap(java.util.function.Predicate<Map<K,V>> predicate)
Build a FlatMap Reducer.
|
static <T> Reducer<T,List<T>> |
none()
No reduce policy needed.
|
static <T> Reducer<T,Boolean> |
noneMatch(java.util.function.Predicate<T> predicate)
Build a NoneMatch Reducer.
|
public static <T> Reducer<T,T> firstOf(@Nonnull java.util.function.Predicate<T> predicate)
predicate - the condition predicate.public static <T> Reducer<T,T> firstOf()
public static <T> Reducer<T,Boolean> allMatch(@Nonnull java.util.function.Predicate<T> predicate)
predicate - the condition predicate.public static <T> Reducer<T,Boolean> AllMatchNotEmpty(@Nonnull java.util.function.Predicate<T> predicate)
predicate - the condition predicate.public static <T> Reducer<T,Boolean> anyMatch(@Nonnull java.util.function.Predicate<T> predicate)
predicate - the condition predicate.public static <T> Reducer<T,Boolean> noneMatch(@Nonnull java.util.function.Predicate<T> predicate)
predicate - the condition predicate.public static <T> Reducer<List<T>,List<T>> flatList(@Nonnull java.util.function.Predicate<List<T>> predicate)
predicate - the condition predicate.Copyright © 2022–2023. All rights reserved.