public interface StringCollator
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTION_IGNORE_CASE
An option for any compare() operation.
|
static int |
OPTION_STARTS_WITH
An option for the compare() method that compares two
character arrays.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(char[] one,
int oneOffset,
int oneLength,
char[] two,
int twoOffset,
int twoLength,
int options)
Compare two arrays of characters - or check if the second string
starts with the first one.
|
int |
compare(char one,
char two,
int options)
Compare two characters.
|
static final int OPTION_IGNORE_CASE
static final int OPTION_STARTS_WITH
int compare(char[] one,
int oneOffset,
int oneLength,
char[] two,
int twoOffset,
int twoLength,
int options)
one - the first array of characters.oneOffset - the start of the characters in the first array.oneLength - the number of characters in the first array.two - the second array of characters.twoOffset - the start of the characters in the second array.twoLength - the number of characters in the second array.options - any of the OPTION_XXX values OR'ed together.int compare(char one,
char two,
int options)
one - the first character.two - the second character.options - any of the OPTION_XXX values OR'ed together.