Package com.tenio.event
Interface IEvent<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 IEvent<T>
This function interface provides one method for invoking an event.- Author:
- kong
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
emit(T... args)
To invoke an event.
-
-
-
Method Detail
-
emit
java.lang.Object emit(T... args)
To invoke an event.- Parameters:
args
- the parameters those will be sent to subscribers- Returns:
- the subsribe's result
-
-