public class BinarySearchUsingFirstCharacters extends Object
Constructor and Description |
---|
BinarySearchUsingFirstCharacters() |
Modifier and Type | Method and Description |
---|---|
static List |
doSearchConsideringCaseSensitive(String text,
Vector sortOrderedItems)
This method should be used when is wanted to distinguish small letters from capital letters during the search.
|
static List |
doSearchConsideringCaseSensitive(String text,
Vector sortOrderedItems,
Comparator comp)
This method should be used when is wanted distinguish small letters from capital letters during the search, and the comparation of items
done according an algorithm we define.
|
static List |
doSearchIgnoringCaseSensitive(String text,
Vector sortOrderedItems)
This method should be used when is wanted not to distinguish small letters from capital letters during the search.
|
static List |
doSearchIgnoringCaseSensitive(String text,
Vector sortOrderedItems,
Comparator comp)
This method should be used when is wanted not to distinguish small letters from capital letters during the search, and the comparation of items
done according an algorithm we define.
|
public static List doSearchConsideringCaseSensitive(String text, Vector sortOrderedItems)
Comparable
interface.text
- java.lang.StringsortOrderedItems
- java.util.Vectorpublic static List doSearchIgnoringCaseSensitive(String text, Vector sortOrderedItems)
Comparable
interface.text
- java.lang.StringsortOrderedItems
- java.util.Vectorpublic static List doSearchConsideringCaseSensitive(String text, Vector sortOrderedItems, Comparator comp)
text
- java.lang.StringsortOrderedItems
- java.util.Vectorcomp
- An Comparator object which implements the compareTo() method.public static List doSearchIgnoringCaseSensitive(String text, Vector sortOrderedItems, Comparator comp)
text
- java.lang.StringsortOrderedItems
- java.util.Vectorcomp
- An Comparator object which implements the compareTo() method.