Interface Message<T,CONTEXT>

Type Parameters:
T - type of message
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 Message<T,CONTEXT>
Message is used to store message in MessageRegistry
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get(CONTEXT context)
     
    static <CONTEXT> Message<String,CONTEXT>
    of(String message)
    Create message from string
    static <CONTEXT> Message<String,CONTEXT>
    of(Function<CONTEXT,String> message)
    Create message from string