A Collator is thread-safe only when frozen. See {{@link #isFrozen()} and {@link com.ibm.icu.util.Freezable}.
+ *
*
* Users are strongly encouraged to read the User
* Guide for more information about the collation service before using this class.
@@ -308,6 +310,10 @@ public final class RuleBasedCollator extends Collator {
/**
* Determines whether the object has been frozen or not.
+ *
+ *
An unfrozen Collator is mutable and not thread-safe.
+ * A frozen Collator is immutable and thread-safe.
+ *
* @stable ICU 4.8
*/
@Override
--
2.40.0