Package com.illumon.iris.libs.primitives
Enum BinSearch
- All Implemented Interfaces:
Serializable
,Comparable<BinSearch>
,java.lang.constant.Constable
public enum BinSearch extends Enum<BinSearch>
Algorithm used to resolve ties when performing a binary search.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BS_ANY
Binary search algorithm returns any matching index.BS_HIGHEST
Binary search algorithm returns the highest matching index.BS_LOWEST
Binary search algorithm returns the lowest matching index. -
Method Summary
-
Enum Constant Details
-
BS_ANY
Binary search algorithm returns any matching index. -
BS_HIGHEST
Binary search algorithm returns the highest matching index. -
BS_LOWEST
Binary search algorithm returns the lowest matching index.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-