Package com.hazelcast.function
Interface SupplierEx<T>
-
- Type Parameters:
T
- the type of results supplied by this supplier
- All Superinterfaces:
com.hazelcast.security.impl.function.SecuredFunction
,java.io.Serializable
,java.util.function.Supplier<T>
- 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 SupplierEx<T> extends java.util.function.Supplier<T>, java.io.Serializable, com.hazelcast.security.impl.function.SecuredFunction
Serializable
variant ofjava.util.function.Supplier
which declares checked exception.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> SupplierEx<V>
andThen(FunctionEx<? super T,? extends V> after)
Serializable
analogue ofjava.util.function.Function#andThen(Function)
.default T
get()
T
getEx()
Exception-declaring version ofSupplier.get()
.
-
-
-
Method Detail
-
getEx
T getEx() throws java.lang.Exception
Exception-declaring version ofSupplier.get()
.- Throws:
java.lang.Exception
- in case of any exceptional case
-
andThen
default <V> SupplierEx<V> andThen(FunctionEx<? super T,? extends V> after)
Serializable
analogue ofjava.util.function.Function#andThen(Function)
.- Type Parameters:
V
- the type of output of theafter
function, and of the composed function- Since:
- 5.4
-
-