Package com.isode.dsapi.config
Enum Class IndexEntry.IndexMatchType
- All Implemented Interfaces:
Serializable
,Comparable<IndexEntry.IndexMatchType>
,Constable
- Enclosing class:
- IndexEntry
Index match types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexEntry.IndexMatchType
getIndexMatchType
(String shortStr) Return matching type for the string.Return the abbreviated String representation of this type, for example, "approx".toString()
Return the "friendly" String representation of this type, for example, "Approximate".static IndexEntry.IndexMatchType
Returns the enum constant of this class with the specified name.static IndexEntry.IndexMatchType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUALITY_MATCH
-
SUBSTRING_MATCH
-
APPROX_MATCH
-
PRESENCE_MATCH
-
UNKNOWN_MATCH
-
-
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
-
getIndexMatchType
Return matching type for the string.- Parameters:
shortStr
- given short string- Returns:
- Matching type or UNKNOWN_MATCH if not found
-
toString
Return the "friendly" String representation of this type, for example, "Approximate".- Overrides:
toString
in classEnum<IndexEntry.IndexMatchType>
- Returns:
- a String representation of this value; never null.
-
getShortName
Return the abbreviated String representation of this type, for example, "approx".- Returns:
- a short String representing this type; never null.
-