allOf

public static Target allOf(Class<? extends Message> targetClass)

Create a Target for all events/entities of the specified type.

Return

the instance of Target assembled according to the parameters.

Parameters

targetClass

the class of a target event/entity