public class CompareModeDefault extends CompareMode
DEFAULT, ICU4J, OFF
Modifier | Constructor and Description |
---|---|
protected |
CompareModeDefault(String name,
int strength) |
Modifier and Type | Method and Description |
---|---|
int |
compareString(String a,
String b,
boolean ignoreCase)
Compare two strings.
|
boolean |
equalsChars(String a,
int ai,
String b,
int bi,
boolean ignoreCase)
Compare two characters in a string.
|
getCollator, getInstance, getName, getName, getStrength
protected CompareModeDefault(String name, int strength)
public int compareString(String a, String b, boolean ignoreCase)
CompareMode
compareString
in class CompareMode
a
- the first stringb
- the second stringignoreCase
- true if a case-insensitive comparison should be madepublic boolean equalsChars(String a, int ai, String b, int bi, boolean ignoreCase)
CompareMode
equalsChars
in class CompareMode
a
- the first stringai
- the character index in the first stringb
- the second stringbi
- the character index in the second stringignoreCase
- true if a case-insensitive comparison should be madeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.