handlersOf

public ImmutableSet<H> handlersOf(M messageClass, MessageClass<?> originClass)

Obtains methods for handling messages of the given class and with the given origin.

If there is no handler matching both the message and origin class, handlers will be searched by the message class only.

If no handlers for a specified criteria is found, returns an empty set.

Parameters

messageClass

the message class of the handled message

originClass

the class of the message, from which the handled message is originate


public ImmutableSet<H> handlersOf(M messageClass)

Obtains methods for handling messages of the given class.

Return

handlers method

Parameters

messageClass

the message class of the handled message