Enum Class EventListener.Result

java.lang.Object
java.lang.Enum<EventListener.Result>
org.teleight.teleightbots.event.EventListener.Result
All Implemented Interfaces:
Serializable, Comparable<EventListener.Result>, Constable
Enclosing interface:
EventListener<T extends Event>

public static enum EventListener.Result extends Enum<EventListener.Result>
Enumeration of possible results from running an event.
  • Enum Constant Details

    • SUCCESS

      public static final EventListener.Result SUCCESS
      Indicates that the event was successfully processed.
    • CANCELLED

      public static final EventListener.Result CANCELLED
      Indicates that the event was canceled and not processed.
    • EXPIRED

      public static final EventListener.Result EXPIRED
      Indicates that the event expired before it could be processed.
    • EXCEPTION

      public static final EventListener.Result EXCEPTION
      Indicates that an exception occurred while processing the event.
  • Method Details

    • values

      public static EventListener.Result[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EventListener.Result valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null