Package com.mongodb.client.model
Class Collation.Builder
java.lang.Object
com.mongodb.client.model.Collation.Builder
- Enclosing class:
Collation
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static final class Collation.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
A Collation builder.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Sets the backwards valuebuild()
Deprecated.Creates a new Collation object with the settings initialised on this builder.Deprecated.Sets the case level valuecollationAlternate
(CollationAlternate alternate) Deprecated.Sets the alternatecollationCaseFirst
(CollationCaseFirst caseFirst) Deprecated.Sets the collation case first valuecollationMaxVariable
(CollationMaxVariable maxVariable) Deprecated.Sets the maxVariablecollationStrength
(CollationStrength strength) Deprecated.Sets the collation strengthDeprecated.Sets the localenormalization
(Boolean normalization) Deprecated.Sets the normalization valuenumericOrdering
(Boolean numericOrdering) Deprecated.Sets the numeric ordering
-
Method Details
-
locale
Deprecated.Sets the locale- Parameters:
locale
- the locale- Returns:
- this
- See Also:
-
caseLevel
Deprecated.Sets the case level valueTurns on case sensitivity
- Parameters:
caseLevel
- the case level value- Returns:
- this
-
collationCaseFirst
Deprecated.Sets the collation case first valueDetermines if Uppercase or lowercase values should come first
- Parameters:
caseFirst
- the collation case first value- Returns:
- this
-
collationStrength
Deprecated.Sets the collation strength- Parameters:
strength
- the strength- Returns:
- this
-
numericOrdering
Deprecated.Sets the numeric ordering- Parameters:
numericOrdering
- if true will order numbers based on numerical order and not collation order- Returns:
- this
-
collationAlternate
Deprecated.Sets the alternateControls whether spaces and punctuation are considered base characters
- Parameters:
alternate
- the alternate- Returns:
- this
-
collationMaxVariable
Deprecated.Sets the maxVariable- Parameters:
maxVariable
- the maxVariable- Returns:
- this
-
normalization
Deprecated.Sets the normalization valueIf true, normalizes text into Unicode NFD.
- Parameters:
normalization
- the normalization value- Returns:
- this
-
backwards
Deprecated.Sets the backwards valueCauses secondary differences to be considered in reverse order, as it is done in the French language
- Parameters:
backwards
- the backwards value- Returns:
- this
-
build
Deprecated.Creates a new Collation object with the settings initialised on this builder.- Returns:
- a new Collation object
-