@NotThreadSafe public static final class Collation.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
Collation.Builder |
backwards(Boolean backwards)
Sets the backwards value
|
Collation |
build()
Creates a new Collation object with the settings initialised on this builder.
|
Collation.Builder |
caseLevel(Boolean caseLevel)
Sets the case level value
|
Collation.Builder |
collationAlternate(CollationAlternate alternate)
Sets the alternate
|
Collation.Builder |
collationCaseFirst(CollationCaseFirst caseFirst)
Sets the collation case first value
|
Collation.Builder |
collationMaxVariable(CollationMaxVariable maxVariable)
Sets the maxVariable
|
Collation.Builder |
collationStrength(CollationStrength strength)
Sets the collation strength
|
Collation.Builder |
locale(String locale)
Sets the locale
|
Collation.Builder |
normalization(Boolean normalization)
Sets the normalization value
|
Collation.Builder |
numericOrdering(Boolean numericOrdering)
Sets the numeric ordering
|
public Collation.Builder locale(String locale)
locale - the localepublic Collation.Builder caseLevel(Boolean caseLevel)
Turns on case sensitivity
caseLevel - the case level valuepublic Collation.Builder collationCaseFirst(CollationCaseFirst caseFirst)
Determines if Uppercase or lowercase values should come first
caseFirst - the collation case first valuepublic Collation.Builder collationStrength(CollationStrength strength)
strength - the strengthpublic Collation.Builder numericOrdering(Boolean numericOrdering)
numericOrdering - if true will order numbers based on numerical order and not collation orderpublic Collation.Builder collationAlternate(CollationAlternate alternate)
Controls whether spaces and punctuation are considered base characters
alternate - the alternatepublic Collation.Builder collationMaxVariable(CollationMaxVariable maxVariable)
maxVariable - the maxVariablepublic Collation.Builder normalization(Boolean normalization)
If true, normalizes text into Unicode NFD.
normalization - the normalization valuepublic Collation.Builder backwards(Boolean backwards)
Causes secondary differences to be considered in reverse order, as it is done in the French language
backwards - the backwards valuepublic Collation build()