public final class Collation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Collation.Builder
A Collation builder.
|
Modifier and Type | Method and Description |
---|---|
BsonDocument |
asDocument()
Gets this collation options as a document.
|
static Collation.Builder |
builder()
Convenience method to create a Builder.
|
static Collation.Builder |
builder(Collation options)
Convenience method to create a from an existing
Collation . |
boolean |
equals(Object o) |
CollationAlternate |
getAlternate()
Returns the collation alternate
|
Boolean |
getBackwards()
Returns the backwards value
|
CollationCaseFirst |
getCaseFirst()
Returns the collation case first value
|
Boolean |
getCaseLevel()
Returns the case level value
|
String |
getLocale()
Returns the locale
|
CollationMaxVariable |
getMaxVariable()
Returns the maxVariable
|
Boolean |
getNormalization()
Returns the normalization value
|
Boolean |
getNumericOrdering()
Returns the numeric ordering, if true will order numbers based on numerical order and not collation order.
|
CollationStrength |
getStrength()
Returns the collation strength
|
int |
hashCode() |
String |
toString() |
public static Collation.Builder builder()
public static Collation.Builder builder(Collation options)
Collation
.options
- create a builder from existing optionspublic String getLocale()
public Boolean getCaseLevel()
public CollationCaseFirst getCaseFirst()
public CollationStrength getStrength()
public Boolean getNumericOrdering()
public CollationAlternate getAlternate()
public CollationMaxVariable getMaxVariable()
Controls which characters are affected by collection alternate CollationAlternate.SHIFTED
.
public Boolean getNormalization()
If true, normalizes text into Unicode NFD.
public Boolean getBackwards()
public BsonDocument asDocument()