Package com.mongodb.client.model
Class Collation.Builder
java.lang.Object
com.mongodb.client.model.Collation.Builder
- Enclosing class:
- Collation
A Collation builder.
-
Method Summary
Modifier and TypeMethodDescriptionSets the backwards valuebuild()
Creates a new Collation object with the settings initialised on this builder.Sets the case level valuecollationAlternate
(CollationAlternate alternate) Sets the alternatecollationCaseFirst
(CollationCaseFirst caseFirst) Sets the collation case first valuecollationMaxVariable
(CollationMaxVariable maxVariable) Sets the maxVariablecollationStrength
(CollationStrength strength) Sets the collation strengthSets the localenormalization
(Boolean normalization) Sets the normalization valuenumericOrdering
(Boolean numericOrdering) Sets the numeric ordering
-
Method Details
-
locale
Sets the locale- Parameters:
locale
- the locale- Returns:
- this
- See Also:
-
caseLevel
Sets the case level valueTurns on case sensitivity
- Parameters:
caseLevel
- the case level value- Returns:
- this
-
collationCaseFirst
Sets the collation case first valueDetermines if Uppercase or lowercase values should come first
- Parameters:
caseFirst
- the collation case first value- Returns:
- this
-
collationStrength
Sets the collation strength- Parameters:
strength
- the strength- Returns:
- this
-
numericOrdering
Sets the numeric ordering- Parameters:
numericOrdering
- if true will order numbers based on numerical order and not collation order- Returns:
- this
-
collationAlternate
Sets the alternateControls whether spaces and punctuation are considered base characters
- Parameters:
alternate
- the alternate- Returns:
- this
-
collationMaxVariable
Sets the maxVariable- Parameters:
maxVariable
- the maxVariable- Returns:
- this
-
normalization
Sets the normalization valueIf true, normalizes text into Unicode NFD.
- Parameters:
normalization
- the normalization value- Returns:
- this
-
backwards
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
Creates a new Collation object with the settings initialised on this builder.- Returns:
- a new Collation object
-