com.ibm.commons.util
Class DichotomySearch.StringSearch

java.lang.Object
  extended by com.ibm.commons.util.DichotomySearch
      extended by com.ibm.commons.util.DichotomySearch.StringSearch
Direct Known Subclasses:
DichotomySearch.StringArraySearch
Enclosing class:
DichotomySearch

public abstract static class DichotomySearch.StringSearch
extends DichotomySearch

Abstract String search.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.commons.util.DichotomySearch
DichotomySearch.StringArraySearch, DichotomySearch.StringSearch
 
Constructor Summary
DichotomySearch.StringSearch(boolean ignoreCase)
           
 
Method Summary
protected  int compareIndexWithValue(int idx)
           
 boolean contains(java.lang.String value)
           
protected abstract  java.lang.String getString(int idx)
           
 int search(java.lang.String value, boolean exactSearch)
           
 
Methods inherited from class com.ibm.commons.util.DichotomySearch
getCount, search
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DichotomySearch.StringSearch

public DichotomySearch.StringSearch(boolean ignoreCase)
Method Detail

compareIndexWithValue

protected int compareIndexWithValue(int idx)
Specified by:
compareIndexWithValue in class DichotomySearch

search

public int search(java.lang.String value,
                  boolean exactSearch)

contains

public boolean contains(java.lang.String value)

getString

protected abstract java.lang.String getString(int idx)