| java.lang.Object org.h2.value.CompareMode
CompareMode | public class CompareMode (Code) | | Instances of this class can compare strings.
Case sensitive and case insensitive comparison is supported,
and comparison using a collator.
|
Field Summary | |
final public static String | OFF This constant means there is no collator set,
and the default string comparison is to be used. |
Constructor Summary | |
public | CompareMode(Collator collator, String name, int cacheSize) Create a new compare mode with the given collator and cache size. |
OFF | final public static String OFF(Code) | | This constant means there is no collator set,
and the default string comparison is to be used.
|
CompareMode | public CompareMode(Collator collator, String name, int cacheSize)(Code) | | Create a new compare mode with the given collator and cache size.
The cache is used to speed up comparison when using a collator;
CollationKey objects are cached.
Parameters: collator - the collator or null Parameters: name - the collation name or null Parameters: cacheSize - the number of entries in the CollationKey cache |
compareString | public int compareString(String a, String b, boolean ignoreCase)(Code) | | Compare two strings.
Parameters: a - the first string Parameters: b - the second string Parameters: ignoreCase - true if a case-insensitive comparison should be made -1 if the first string is 'smaller', 1 if the second string issmaller, and 0 if they are equal |
equalsChars | public boolean equalsChars(String a, int ai, String b, int bi, boolean ignoreCase)(Code) | | Compare two characters in a string.
Parameters: a - the first string Parameters: ai - the character index in the first string Parameters: b - the second string Parameters: bi - the character index in the second string Parameters: ignoreCase - true if a case-insensitive comparison should be made true if the characters are equals |
getName | public static String getName(Locale l)(Code) | | Get the collation name.
Parameters: l - the locale the name of the collation |
|
|