Package no.digipost.util.bisect
Enum Evaluator.Result
- java.lang.Object
-
- java.lang.Enum<Evaluator.Result>
-
- no.digipost.util.bisect.Evaluator.Result
-
- All Implemented Interfaces:
Serializable,Comparable<Evaluator.Result>
public static enum Evaluator.Result extends Enum<Evaluator.Result>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Evaluator.ResultfromComparatorResult(int comparatorResult)static Evaluator.ResultvalueOf(String name)Returns the enum constant of this type with the specified name.static Evaluator.Result[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOO_LOW
public static final Evaluator.Result TOO_LOW
-
TOO_HIGH
public static final Evaluator.Result TOO_HIGH
-
FOUND
public static final Evaluator.Result FOUND
-
-
Method Detail
-
values
public static Evaluator.Result[] 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 (Evaluator.Result c : Evaluator.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Evaluator.Result 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
-
fromComparatorResult
public static Evaluator.Result fromComparatorResult(int comparatorResult)
-
-