someOf

public static Target someOf(Class<? extends Message> targetClass, Set<? extends Object> ids)

Creates a Target for a subset of events/entities by specifying their IDs.

Return

the instance of Target assembled according to the parameters.

Parameters

targetClass

the class of a target event or entity

ids

the IDs of interest of type which is supported as identifier

Throws

if any of IDs have invalid type or are null