@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(@Nullable java.lang.String locale)
locale - the localepublic Collation.Builder caseLevel(@Nullable java.lang.Boolean caseLevel)
Turns on case sensitivity
caseLevel - the case level valuepublic Collation.Builder collationCaseFirst(@Nullable CollationCaseFirst caseFirst)
Determines if Uppercase or lowercase values should come first
caseFirst - the collation case first valuepublic Collation.Builder collationStrength(@Nullable CollationStrength strength)
strength - the strengthpublic Collation.Builder numericOrdering(@Nullable java.lang.Boolean numericOrdering)
numericOrdering - if true will order numbers based on numerical order and not collation orderpublic Collation.Builder collationAlternate(@Nullable CollationAlternate alternate)
Controls whether spaces and punctuation are considered base characters
alternate - the alternatepublic Collation.Builder collationMaxVariable(@Nullable CollationMaxVariable maxVariable)
maxVariable - the maxVariablepublic Collation.Builder normalization(@Nullable java.lang.Boolean normalization)
If true, normalizes text into Unicode NFD.
normalization - the normalization valuepublic Collation.Builder backwards(@Nullable 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()
Copyright © 2010 - 2023 Adobe. All Rights Reserved