Enum Class ConfFindNextType

Object
Enum<ConfFindNextType>
com.tailf.conf.ConfFindNextType
All Implemented Interfaces:
Serializable, Comparable<ConfFindNextType>, Constable

public enum ConfFindNextType extends Enum<ConfFindNextType>
Enum used in findNext calls to determine if the element extraction should start at indicated element or the element after that
  • Enum Constant Details

    • FIND_NEXT

      public static final ConfFindNextType FIND_NEXT
      Find should start after the indicated element
    • FIND_SAME_OR_NEXT

      public static final ConfFindNextType FIND_SAME_OR_NEXT
      Find should start with indicated element or the next element if the indicated element does not exist
  • Method Details

    • values

      public static ConfFindNextType[] 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 ConfFindNextType 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
    • getValue

      public int getValue()
      get the ordinal value for the enumeration
      Returns:
      ordinal value
    • valueOf

      public static ConfFindNextType valueOf(int i)
      Static method that creates an enum from an integer ordinal value. Should be 0 or 1 for FIND_NEXT or FIND_SAME_OR_NEXT respectively
      Parameters:
      i - ordinal value
      Returns:
      ConfFindNextType enumeration