public class BinarySearchUsingFirstCharacters
extends java.lang.Object
Constructor and Description |
---|
BinarySearchUsingFirstCharacters() |
Modifier and Type | Method and Description |
---|---|
static java.util.List |
doSearchConsideringCaseSensitive(java.lang.String text,
java.util.Vector sortOrderedItems)
This method should be used when is wanted to distinguish small letters from capital letters during the search.
|
static java.util.List |
doSearchConsideringCaseSensitive(java.lang.String text,
java.util.Vector sortOrderedItems,
java.util.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 java.util.List |
doSearchIgnoringCaseSensitive(java.lang.String text,
java.util.Vector sortOrderedItems)
This method should be used when is wanted not to distinguish small letters from capital letters during the search.
|
static java.util.List |
doSearchIgnoringCaseSensitive(java.lang.String text,
java.util.Vector sortOrderedItems,
java.util.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 java.util.List doSearchConsideringCaseSensitive(java.lang.String text, java.util.Vector sortOrderedItems)
Comparable
interface.text
- java.lang.StringsortOrderedItems
- java.util.Vectorpublic static java.util.List doSearchIgnoringCaseSensitive(java.lang.String text, java.util.Vector sortOrderedItems)
Comparable
interface.text
- java.lang.StringsortOrderedItems
- java.util.Vectorpublic static java.util.List doSearchConsideringCaseSensitive(java.lang.String text, java.util.Vector sortOrderedItems, java.util.Comparator comp)
text
- java.lang.StringsortOrderedItems
- java.util.Vectorcomp
- An Comparator object which implements the compareTo() method.public static java.util.List doSearchIgnoringCaseSensitive(java.lang.String text, java.util.Vector sortOrderedItems, java.util.Comparator comp)
text
- java.lang.StringsortOrderedItems
- java.util.Vectorcomp
- An Comparator object which implements the compareTo() method.