Package com.mongodb.client.model
Class Collation
- java.lang.Object
-
- com.mongodb.client.model.Collation
-
@Deprecated(since="2021-05-27") public final class Collation extends Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.The options regarding collation support in MongoDB 3.4+- Since:
- 3.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCollation.BuilderDeprecated.Usage of this API is not supported in AEM as a Cloud Service.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description BsonDocumentasDocument()Deprecated.Gets this collation options as a document.static Collation.Builderbuilder()Deprecated.Convenience method to create a Builder.static Collation.Builderbuilder(Collation options)Deprecated.Convenience method to create a from an existingCollation.booleanequals(Object o)Deprecated.CollationAlternategetAlternate()Deprecated.Returns the collation alternateBooleangetBackwards()Deprecated.Returns the backwards valueCollationCaseFirstgetCaseFirst()Deprecated.Returns the collation case first valueBooleangetCaseLevel()Deprecated.Returns the case level valueStringgetLocale()Deprecated.Returns the localeCollationMaxVariablegetMaxVariable()Deprecated.Returns the maxVariableBooleangetNormalization()Deprecated.Returns the normalization valueBooleangetNumericOrdering()Deprecated.Returns the numeric ordering, if true will order numbers based on numerical order and not collation order.CollationStrengthgetStrength()Deprecated.Returns the collation strengthinthashCode()Deprecated.StringtoString()Deprecated.
-
-
-
Method Detail
-
builder
public static Collation.Builder builder()
Deprecated.Convenience method to create a Builder.- Returns:
- a builder
-
builder
public static Collation.Builder builder(Collation options)
Deprecated.Convenience method to create a from an existingCollation.- Parameters:
options- create a builder from existing options- Returns:
- a builder
-
getLocale
@Nullable public String getLocale()
Deprecated.Returns the locale- Returns:
- the locale
- See Also:
- ICU User Guide - Locale
-
getCaseLevel
@Nullable public Boolean getCaseLevel()
Deprecated.Returns the case level value- Returns:
- the case level value
-
getCaseFirst
@Nullable public CollationCaseFirst getCaseFirst()
Deprecated.Returns the collation case first value- Returns:
- the collation case first value
-
getStrength
@Nullable public CollationStrength getStrength()
Deprecated.Returns the collation strength- Returns:
- the collation strength
-
getNumericOrdering
@Nullable public Boolean getNumericOrdering()
Deprecated.Returns the numeric ordering, if true will order numbers based on numerical order and not collation order.- Returns:
- the numeric ordering
-
getAlternate
@Nullable public CollationAlternate getAlternate()
Deprecated.Returns the collation alternate- Returns:
- the alternate
-
getMaxVariable
@Nullable public CollationMaxVariable getMaxVariable()
Deprecated.Returns the maxVariableControls which characters are affected by collection alternate
CollationAlternate.SHIFTED.- Returns:
- the maxVariable
-
getNormalization
@Nullable public Boolean getNormalization()
Deprecated.Returns the normalization valueIf true, normalizes text into Unicode NFD.
- Returns:
- the normalization
-
getBackwards
@Nullable public Boolean getBackwards()
Deprecated.Returns the backwards value- Returns:
- the backwards value
-
asDocument
public BsonDocument asDocument()
Deprecated.Gets this collation options as a document.- Returns:
- The collation options as a BsonDocument
-
-