public class SimpleCollator extends Object implements StringCollator
OPTION_IGNORE_CASE, OPTION_STARTS_WITH| Constructor and Description |
|---|
SimpleCollator() |
| 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.
|
public int compare(char[] one,
int oneOffset,
int oneLength,
char[] two,
int twoOffset,
int twoLength,
int options)
StringCollatorcompare in interface StringCollatorone - 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.public int compare(char one,
char two,
int options)
StringCollatorcompare in interface StringCollatorone - the first character.two - the second character.options - any of the OPTION_XXX values OR'ed together.