Interface NotificationMessageProvider<T>
-
- All Superinterfaces:
Function<String,NotificationMessage<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 NotificationMessageProvider<T> extends Function<String,NotificationMessage<T>>
Provider ofNotificationMessage
(s) that can be used for creating the notifications- Author:
- Filip Hrisafov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default NotificationMessage<T>
apply(String deliverer)
NotificationMessage<T>
createMessage(String deliverer)
Create a notification message for the provideddeliverer
-
-
-
Method Detail
-
apply
default NotificationMessage<T> apply(String deliverer)
- Specified by:
apply
in interfaceFunction<String,NotificationMessage<T>>
-
createMessage
NotificationMessage<T> createMessage(String deliverer)
Create a notification message for the provideddeliverer
- Parameters:
deliverer
- the type of the deliverer that will consume the message- Returns:
- the notification message that can be consumed by the deliverer
-
-