Module spring.data.mongodb
Class Collation.CollationLocale
java.lang.Object
org.springframework.data.mongodb.core.query.Collation.CollationLocale
- Enclosing class:
- Collation
ICU locale abstraction for usage with MongoDB
Collation.- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionasString()Get the string representation.static Collation.CollationLocaleCreate newCollation.CollationLocalefor given language.Define language variant.
-
Method Details
-
of
Create newCollation.CollationLocalefor given language.- Parameters:
language- must not be null.- Returns:
- new instance of
Collation.CollationLocale.
-
variant
Define language variant.- Parameters:
variant- must not be null.- Returns:
- new
Collation.CollationLocale.
-
asString
Get the string representation.- Returns:
- the collation
Stringin Mongo ICU format.
-