Package com.tailf.conf
Enum Class ConfFindNextType
- All Implemented Interfaces:
Serializable
,Comparable<ConfFindNextType>
,Constable
Enum used in findNext calls to determine if the element extraction
should start at indicated element or the element after that
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFind should start after the indicated elementFind should start with indicated element or the next element if the indicated element does not exist -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
get the ordinal value for the enumerationstatic ConfFindNextType
valueOf
(int i) Static method that creates an enum from an integer ordinal value.static ConfFindNextType
Returns the enum constant of this class with the specified name.static ConfFindNextType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
FIND_NEXT
Find should start after the indicated element -
FIND_SAME_OR_NEXT
Find should start with indicated element or the next element if the indicated element does not exist
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
getValue
public int getValue()get the ordinal value for the enumeration- Returns:
- ordinal value
-
valueOf
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
-