public abstract class BinarySearchBase
extends java.lang.Object
BinarySearch.| Constructor and Description |
|---|
BinarySearchBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract int |
compare(int index)
Compares element at
index position with the target. |
int |
find(int low,
int high)
Finds index of given element in inclusive index range.
|
int |
findFirst(int low,
int high)
Finds very first index of given element in inclusive index range.
|
int |
findLast(int low,
int high)
Finds very last index of given element in inclusive index range.
|
protected abstract int compare(int index)
index position with the target.public int find(int low,
int high)
public int findFirst(int low,
int high)
public int findLast(int low,
int high)
Copyright © 2003-present Jodd Team