Class EventType

  • All Implemented Interfaces:
    Key

    public final class EventType
    extends Object
    implements Key
    This is the type of an event which must be related to the handlers.
    To be unique it uses a class name as value.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • create

        public static <T extends EventEventType create​(Class<T> clazz)
        Creates a event type using the class name passed as argument.
        Type Parameters:
        T - type of event
        Parameters:
        clazz - class (usually the event one)
        Returns:
        the event type.
      • value

        public String value()
        Description copied from interface: Key
        Returns the name value of property
        Specified by:
        value in interface Key
        Returns:
        the name value of property
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object