Enum DeviceAttributes.Feature

java.lang.Object
java.lang.Enum<DeviceAttributes.Feature>
org.aesh.terminal.DeviceAttributes.Feature
All Implemented Interfaces:
Serializable, Comparable<DeviceAttributes.Feature>, java.lang.constant.Constable
Enclosing class:
DeviceAttributes

public static enum DeviceAttributes.Feature extends Enum<DeviceAttributes.Feature>
Feature flags that can be reported in DA1 response.
  • Enum Constant Details

  • Method Details

    • values

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

      public static DeviceAttributes.Feature valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public int getCode()
    • fromCode

      public static DeviceAttributes.Feature fromCode(int code)
      Find a Feature by its DA1 parameter code.
      Parameters:
      code - the DA1 parameter code
      Returns:
      the Feature, or null if not recognized