| java.lang.Object org.apache.harmony.luni.util.BinarySearch
BinarySearch | public class BinarySearch (Code) | | |
Method Summary | |
public static int | binarySearch(String data, char value) Search the sorted characters in the string and return an exact index or
-1. | public static int | binarySearchRange(String data, char c) Search the sorted characters in the string and return the nearest index. |
binarySearch | public static int binarySearch(String data, char value)(Code) | | Search the sorted characters in the string and return an exact index or
-1.
Parameters: data - the String to search Parameters: value - the character to search for the matching index, or -1 |
binarySearchRange | public static int binarySearchRange(String data, char c)(Code) | | Search the sorted characters in the string and return the nearest index.
Parameters: data - the String to search Parameters: c - the character to search for the nearest index |
|
|