Package org.gedcomx.search
Enum ResultConfidence
- java.lang.Object
-
- java.lang.Enum<ResultConfidence>
-
- org.gedcomx.search.ResultConfidence
-
- All Implemented Interfaces:
Serializable,Comparable<ResultConfidence>
public enum ResultConfidence extends Enum<ResultConfidence>
The levels of confidence of a search result.- Author:
- Ryan Heaton
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integervalue()static ResultConfidencevalueOf(String name)Returns the enum constant of this type with the specified name.static ResultConfidence[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
one
public static final ResultConfidence one
Result confidence level 1 (lowest).
-
two
public static final ResultConfidence two
Result confidence level 2.
-
three
public static final ResultConfidence three
Result confidence level 3.
-
four
public static final ResultConfidence four
Result confidence level 4.
-
five
public static final ResultConfidence five
Result confidence level 5 (highest).
-
-
Method Detail
-
values
public static ResultConfidence[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResultConfidence c : ResultConfidence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResultConfidence 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 nameNullPointerException- if the argument is null
-
value
public Integer value()
-
-