Enum Class EventFlag

java.lang.Object
java.lang.Enum<EventFlag>
com.dsi.ant.plugins.antplus.pcc.defines.EventFlag
All Implemented Interfaces:
Serializable, Comparable<EventFlag>, Constable

public enum EventFlag extends Enum<EventFlag>
Informational flags about the received event.
  • Enum Constant Details

    • UNRECOGNIZED_FLAG_PRESENT

      public static final EventFlag UNRECOGNIZED_FLAG_PRESENT
      The value sent by the plugin service was at least partially unrecognized indicating an upgrade of the PCC may be required to handle the value.
    • WAS_BUFFERED

      public static final EventFlag WAS_BUFFERED
      The event was buffered indicating it was not received in real time.
  • Method Details

    • values

      public static EventFlag[] 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 EventFlag 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
    • getLongValue

      public long getLongValue()
      Convert enum to equivalent long value.
      Returns:
      long value equivalent
    • getEventFlagsFromLong

      public static EnumSet<EventFlag> getEventFlagsFromLong(long longValue)
      Gets the set of flags contained in the given value
      Parameters:
      longValue - raw long value containing flags
      Returns:
      set of flags contained in the given value
    • getLongFromEventFlags

      public static long getLongFromEventFlags(EnumSet<EventFlag> eventFlags)
      Converts a set of flags to the equivalent raw long value
      Parameters:
      eventFlags - set of flags to convert
      Returns:
      equivalent raw long value