Package com.hazelcast.function
Interface FunctionEx<T,R>
- Type Parameters:
T
- the type of the input to the functionR
- the type of the result of the function
- All Superinterfaces:
Function<T,
,R> com.hazelcast.security.impl.function.SecuredFunction
,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface FunctionEx<T,R>
extends Function<T,R>, Serializable, com.hazelcast.security.impl.function.SecuredFunction
Serializable
variant of java.util.function.Function
which declares checked exception.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> FunctionEx<T,
V> andThen
(FunctionEx<? super R, ? extends V> after) Serializable
variant ofjava.util.function.Function#andThen(Function)
.default R
Exception-declaring version ofFunction.apply(T)
.default <V> FunctionEx<V,
R> compose
(FunctionEx<? super V, ? extends T> before) Serializable
variant ofjava.util.function.Function#compose(Function)
.static <T> FunctionEx<T,
T> identity()
Serializable
variant ofjava.util.function.Function#identity()
.static <V,
R> FunctionEx<V, R> unchecked
(FunctionEx<V, R> function) Enforces that the return type is FunctionEx, to be used to wrap some expressions without casting.Methods inherited from interface com.hazelcast.security.impl.function.SecuredFunction
permissions
-
Method Details
-
applyEx
Exception-declaring version ofFunction.apply(T)
.- Throws:
Exception
- in case of any exceptional case
-
apply
-
identity
Serializable
variant ofjava.util.function.Function#identity()
.- Type Parameters:
T
- the type of the input and output objects to the function
-
unchecked
Enforces that the return type is FunctionEx, to be used to wrap some expressions without casting. -
compose
Serializable
variant ofjava.util.function.Function#compose(Function)
.- Type Parameters:
V
- the type of input to thebefore
function, and to the composed function
-
andThen
Serializable
variant ofjava.util.function.Function#andThen(Function)
.- Type Parameters:
V
- the type of output of theafter
function, and of the composed function
-