from

public static EventClass from(Class<? extends EventMessage> rawClass)

Creates a new instance of the event class.

Return

new instance

Parameters

rawClass

a class of an event message or a rejection message


public static EventClass from(TypeUrl typeUrl)

Creates a new EventClass instance from the passed type URL.

Throws

if the passed TypeUrl does not represent an event type


public static EventClass from(Event event)

Creates a new EventClass from the given event.

Named from to avoid collision with of.