T - 参数类型@FunctionalInterface public interface SerUnaryOperator<T> extends UnaryOperator<T>, Serializable
UnaryOperator| 限定符和类型 | 方法和说明 |
|---|---|
default T |
apply(T t)
Applies this function to the given argument.
|
T |
applying(T t)
Applies this function to the given argument.
|
static <T,R,F extends Function<T,R>> |
casting(F function)
casting identity
|
static <T> SerUnaryOperator<T> |
identity()
Returns a unary operator that always returns its input argument.
|
T applying(T t) throws Exception
t - the function argumentException - wrapped checked exceptionstatic <T> SerUnaryOperator<T> identity()
static <T,R,F extends Function<T,R>> SerUnaryOperator<T> casting(F function)
T - param typeR - result typeF - lambda typefunction - source functionCopyright © 2023. All rights reserved.