RuleBasedCollator (Java SE 26 & JDK 26)
- All Implemented Interfaces:
Cloneable, Comparator<Object>
-
Field Summary
-
Constructor Summary
Constructors
RuleBasedCollator constructor.
-
Method Summary
clone()Standard override; no change in semantics.
intCompares the character data stored in two different strings based on the collation rules.
booleanCompares the equality of two collation objects.
Returns a CollationElementIterator for the given String.
Returns a CollationElementIterator for the given CharacterIterator.
Transforms the string into a series of characters that can be compared with CollationKey.compareTo.
getRules()Gets the table-based rules for the collation object.
inthashCode()Generates the hash code for the table-based collation object
Methods declared in class Collator
compare, equals, getAvailableLocales, getDecomposition, getInstance, getInstance, getStrength, setDecomposition, setStrengthintCompares its two arguments for order.
booleanConvenience method for comparing the equality of two strings based on this Collator's collation rules.
Returns an array of all locales for which the
getInstancemethods of this class can return localized instances.intGet the decomposition mode of this Collator.
Gets the Collator for the current default locale.
Gets the Collator for the desired locale.
intReturns this Collator's strength property.
voidSet the decomposition mode of this Collator.
voidSets this Collator's strength property.
Methods declared in class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitprotected voidDeprecated, for removal: This API element is subject to removal in a future version.
Returns the runtime class of this
Object.final voidWakes up a single thread that is waiting on this object's monitor.
final voidWakes up all threads that are waiting on this object's monitor.
Returns a string representation of the object.
final voidCauses the current thread to wait until it is awakened, typically by being notified or interrupted.
final voidwait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final voidwait(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
Methods declared in interface Comparator
max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongdefault <U extends T>
Umax(U o1, U o2) Returns the greater of two values according to this comparator.
default <U extends T>
Umin(U o1, U o2) Returns the smaller of two values according to this comparator.
Returns a comparator that imposes the reverse ordering of this comparator.
Returns a lexicographic-order comparator with another comparator.
Returns a lexicographic-order comparator with a function that extracts a
Comparablesort key.Returns a lexicographic-order comparator with a function that extracts a key to be compared with the given
Comparator.Returns a lexicographic-order comparator with a function that extracts a
doublesort key.Returns a lexicographic-order comparator with a function that extracts an
intsort key.Returns a lexicographic-order comparator with a function that extracts a
longsort key.
-
Constructor Details
-
RuleBasedCollator
-
-
Method Details
-
getRules
-
getCollationElementIterator
-
getCollationElementIterator
-
compare
-
getCollationKey
-
clone
-
equals
-
hashCode
-