@NotThreadSafe public static final class Collation.Builder extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Collation.Builder |
backwards(java.lang.Boolean backwards)
Sets the backwards value
|
Collation |
build()
Creates a new Collation object with the settings initialised on this builder.
|
Collation.Builder |
caseLevel(java.lang.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(java.lang.String locale)
Sets the locale
|
Collation.Builder |
normalization(java.lang.Boolean normalization)
Sets the normalization value
|
Collation.Builder |
numericOrdering(java.lang.Boolean numericOrdering)
Sets the numeric ordering
|
public Collation.Builder locale(java.lang.String locale)
locale
- the localepublic Collation.Builder caseLevel(java.lang.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(java.lang.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(java.lang.Boolean normalization)
If true, normalizes text into Unicode NFD.
normalization
- the normalization valuepublic Collation.Builder backwards(java.lang.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()