T - The type of the value stored with this key@CatalogedBy(value=EventContextKeys.class) public interface EventContextKey<T> extends CatalogType
EventContext.| Modifier and Type | Interface and Description |
|---|---|
static interface |
EventContextKey.Builder<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> EventContextKey.Builder<T> |
builder(Class<T> clazz)
Creates a builder to be used for creating a new
EventContextKey. |
Class<T> |
getAllowedType()
Gets the allowed type for the value of this key.
|
getId, getNamestatic <T> EventContextKey.Builder<T> builder(Class<T> clazz)
EventContextKey.T - The type of the value stored with this keyclazz - The class the key will allow access to