Package com.jackmeng.stl
Interface stl_Callback<T,E>
- Type Parameters:
T
- The return type; if nothing is to be returned, putVoid
and return Null in the implementationE
- The parameter type; if nothing is to be taken, putNull_t
.
- All Known Subinterfaces:
stl_ErrCall
,stl_Listener<E>
,stl_ListenerDeployable<A>
,stl_Loggable
- All Known Implementing Classes:
stl_Commands
,stl_Commands.Commands_Fx
,stl_Commands.Type_DYNAMIC
,stl_Commands.Type_HYBRID
,stl_Commands.Type_INFORMATIONAL
,stl_Commands.Type_STATIC
- 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 stl_Callback<T,E>
A functional callback.
A callback is defined as basically lambda. Additionally it can be
thought of as a crossover between
Consumer
and a Supplier
.-
Method Summary
-
Method Details
-
call
Call this callback with the specified attributes.- Parameters:
arg
- The specified parameter type- Returns:
- The specified return type. Return "null" if the return type was set to
Void
-