|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.util.DichotomySearch
public abstract class DichotomySearch
Search using the dichotomy algorithm. should use Java Array Binary Search
Nested Class Summary | |
---|---|
static class |
DichotomySearch.StringArraySearch
Search a String in an array of Strings. |
static class |
DichotomySearch.StringSearch
Abstract String search. |
Constructor Summary | |
---|---|
DichotomySearch()
|
Method Summary | |
---|---|
protected abstract int |
compareIndexWithValue(int idx)
|
protected abstract int |
getCount()
|
int |
search(boolean exactSearch)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DichotomySearch()
Method Detail |
---|
protected abstract int getCount()
protected abstract int compareIndexWithValue(int idx)
public int search(boolean exactSearch)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |