T - TR - resultpublic interface NullableFunction<T,R> extends java.util.function.Function<T,R>
int ret = NullableFunction.of(String::trim).then(Integer::decode).then(a to a * a).apply(null, -1);
| 限定符和类型 | 方法和说明 |
|---|---|
default <V> NullableFunction<T,V> |
andThen(java.util.function.Function<? super R,? extends V> after)
已过时。
|
default R |
apply(T t,
R defaultVal) |
default <V> NullableFunction<V,R> |
before(java.util.function.Function<? super V,? extends T> before) |
default <V> NullableFunction<V,R> |
compose(java.util.function.Function<? super V,? extends T> before)
已过时。
|
static <T1,R1> NullableFunction<T1,R1> |
of(NullableFunction<T1,R1> map) |
default <V> NullableFunction<T,V> |
then(java.util.function.Function<? super R,? extends V> after) |
apply, identitystatic <T1,R1> NullableFunction<T1,R1> of(NullableFunction<T1,R1> map)
default <V> NullableFunction<T,V> then(java.util.function.Function<? super R,? extends V> after)
default <V> NullableFunction<V,R> before(java.util.function.Function<? super V,? extends T> before)
@Deprecated default <V> NullableFunction<T,V> andThen(java.util.function.Function<? super R,? extends V> after)
andThen 在接口中 java.util.function.Function<T,R>@Deprecated default <V> NullableFunction<V,R> compose(java.util.function.Function<? super V,? extends T> before)
compose 在接口中 java.util.function.Function<T,R>before - the function to apply before this function is appliedCopyright © 2022. All rights reserved.