public class Functions extends Object
| 构造器和说明 |
|---|
Functions() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> Predicate<T> |
convert(Consumer<T> consumer,
boolean result) |
static <T,R> Function<T,R> |
convert(Consumer<T> consumer,
R result) |
static boolean |
doIfTrue(boolean state,
Runnable action) |
static <T> T |
doIfTrue(Supplier<T> supplier,
Predicate<T> predicate,
Runnable action) |
static <T> T |
doIfTrue(Supplier<T> supplier,
T expect,
Runnable action) |
Copyright © 2024. All rights reserved.