T
- The type class parameter allows to define the types in a type safe way and represents a event class,
where the type is associated to.public class EventType<T extends Event> extends Object implements Serializable
ROOT
has no super type.
Event types should be stored as static fields on the events itself.Constructor and Description |
---|
EventType(EventType<? super T> superType,
String name)
Creates a event type instance with the given super type and name.
|
EventType(String name)
Creates a type with the given name and the root type as parent.
|
Modifier and Type | Method and Description |
---|---|
static List<EventType<?>> |
fetchSuperTypes(EventType<?> type) |
EventType<? super T> |
getSuperType() |
static boolean |
isInstanceOf(EventType<?> type,
EventType<?> baseType) |
String |
name() |
public EventType(String name)
name
- the name of the new typepublic EventType<? super T> getSuperType()
public static List<EventType<?>> fetchSuperTypes(EventType<?> type)
public static boolean isInstanceOf(EventType<?> type, EventType<?> baseType)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.