Enum Class AcknowledgeMode

java.lang.Object
java.lang.Enum<AcknowledgeMode>
org.refcodes.p2p.alt.serial.AcknowledgeMode
All Implemented Interfaces:
Serializable, Comparable<AcknowledgeMode>, Constable, org.refcodes.mixin.EnabledAccessor

public enum AcknowledgeMode extends Enum<AcknowledgeMode> implements org.refcodes.mixin.EnabledAccessor
The AcknowledgeMode determines the mode of operation regarding acknowledging hop count and send message transmissions.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>

    Nested classes/interfaces inherited from interface org.refcodes.mixin.EnabledAccessor

    org.refcodes.mixin.EnabledAccessor.EnabledBuilder<B extends org.refcodes.mixin.EnabledAccessor.EnabledBuilder<B>>, org.refcodes.mixin.EnabledAccessor.EnabledMutator, org.refcodes.mixin.EnabledAccessor.EnabledProperty
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Disable acknowledgement transmissions and requests.
    Enable acknowledgement transmissions and requests.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ON

      public static final AcknowledgeMode ON
      Enable acknowledgement transmissions and requests.
    • OFF

      public static final AcknowledgeMode OFF
      Disable acknowledgement transmissions and requests.
  • Method Details

    • values

      public static AcknowledgeMode[] 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 AcknowledgeMode 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
    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.refcodes.mixin.EnabledAccessor