Enum Class GpioType

java.lang.Object
java.lang.Enum<GpioType>
net.solarnetwork.node.control.numato.usbgpio.GpioType
All Implemented Interfaces:
Serializable, Comparable<GpioType>, Constable, net.solarnetwork.domain.CodedValue

public enum GpioType extends Enum<GpioType> implements net.solarnetwork.domain.CodedValue
Enumeration of GPIO types.
Version:
1.0
Author:
matt
  • Enum Constant Details

    • Analog

      public static final GpioType Analog
      An analog type.
    • Digital

      public static final GpioType Digital
      A digital (on/off) type.
  • Method Details

    • values

      public static GpioType[] 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 GpioType 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
    • getCode

      public int getCode()
      Specified by:
      getCode in interface net.solarnetwork.domain.CodedValue