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.CollationLocale
Create newCollation.CollationLocale
for given language.Define language variant.
-
Method Details
-
of
Create newCollation.CollationLocale
for 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
String
in Mongo ICU format.
-