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 java.lang.Object
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.A Collation builder.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collation.Builder
backwards(java.lang.Boolean backwards)
Deprecated.Sets the backwards valueCollation
build()
Deprecated.Creates a new Collation object with the settings initialised on this builder.Collation.Builder
caseLevel(java.lang.Boolean caseLevel)
Deprecated.Sets the case level valueCollation.Builder
collationAlternate(CollationAlternate alternate)
Deprecated.Sets the alternateCollation.Builder
collationCaseFirst(CollationCaseFirst caseFirst)
Deprecated.Sets the collation case first valueCollation.Builder
collationMaxVariable(CollationMaxVariable maxVariable)
Deprecated.Sets the maxVariableCollation.Builder
collationStrength(CollationStrength strength)
Deprecated.Sets the collation strengthCollation.Builder
locale(java.lang.String locale)
Deprecated.Sets the localeCollation.Builder
normalization(java.lang.Boolean normalization)
Deprecated.Sets the normalization valueCollation.Builder
numericOrdering(java.lang.Boolean numericOrdering)
Deprecated.Sets the numeric ordering
-
-
-
Method Detail
-
locale
public Collation.Builder locale(@Nullable java.lang.String locale)
Deprecated.Sets the locale- Parameters:
locale
- the locale- Returns:
- this
- See Also:
- ICU User Guide - Locale
-
caseLevel
public Collation.Builder caseLevel(@Nullable java.lang.Boolean caseLevel)
Deprecated.Sets the case level valueTurns on case sensitivity
- Parameters:
caseLevel
- the case level value- Returns:
- this
-
collationCaseFirst
public Collation.Builder collationCaseFirst(@Nullable CollationCaseFirst caseFirst)
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
public Collation.Builder collationStrength(@Nullable CollationStrength strength)
Deprecated.Sets the collation strength- Parameters:
strength
- the strength- Returns:
- this
-
numericOrdering
public Collation.Builder numericOrdering(@Nullable java.lang.Boolean numericOrdering)
Deprecated.Sets the numeric ordering- Parameters:
numericOrdering
- if true will order numbers based on numerical order and not collation order- Returns:
- this
-
collationAlternate
public Collation.Builder collationAlternate(@Nullable CollationAlternate alternate)
Deprecated.Sets the alternateControls whether spaces and punctuation are considered base characters
- Parameters:
alternate
- the alternate- Returns:
- this
-
collationMaxVariable
public Collation.Builder collationMaxVariable(@Nullable CollationMaxVariable maxVariable)
Deprecated.Sets the maxVariable- Parameters:
maxVariable
- the maxVariable- Returns:
- this
-
normalization
public Collation.Builder normalization(@Nullable java.lang.Boolean normalization)
Deprecated.Sets the normalization valueIf true, normalizes text into Unicode NFD.
- Parameters:
normalization
- the normalization value- Returns:
- this
-
backwards
public Collation.Builder backwards(@Nullable java.lang.Boolean 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
public Collation build()
Deprecated.Creates a new Collation object with the settings initialised on this builder.- Returns:
- a new Collation object
-
-