SignalEnvelope
public SignalEnvelope(Class<T> eventType, T value)Wraps a payload for the default key of its type.
me.tamkungz.signals.internal.SignalEnvelope
GEB event that carries one signal payload together with the key it was fired on.
<p>
Internal: this is the only event type {@link SignalRouter} listens to. It is public because the
dispatcher GEB generates for it lives in this package and must be reachable from the bus.
public final class SignalEnvelope<T> implements IEventpublic SignalEnvelope(Class<T> eventType, T value)Wraps a payload for the default key of its type.
public SignalEnvelope(SignalKey<T> key, T value)Wraps a payload for the given key.
public SignalKey<T> key()Returns the key the payload is fired on.
public Class<T> eventType()Returns the payload type.
public T value()Returns the payload.