public final class Collation
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Collation.Builder
A Collation builder.
|
Modifier and Type | Field and Description |
---|---|
private CollationAlternate |
alternate |
private java.lang.Boolean |
backwards |
private CollationCaseFirst |
caseFirst |
private java.lang.Boolean |
caseLevel |
private java.lang.String |
locale |
private CollationMaxVariable |
maxVariable |
private java.lang.Boolean |
normalization |
private java.lang.Boolean |
numericOrdering |
private CollationStrength |
strength |
Modifier | Constructor and Description |
---|---|
private |
Collation(Collation.Builder 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(java.lang.Object o) |
CollationAlternate |
getAlternate()
Returns the collation alternate
|
java.lang.Boolean |
getBackwards()
Returns the backwards value
|
CollationCaseFirst |
getCaseFirst()
Returns the collation case first value
|
java.lang.Boolean |
getCaseLevel()
Returns the case level value
|
java.lang.String |
getLocale()
Returns the locale
|
CollationMaxVariable |
getMaxVariable()
Returns the maxVariable
|
java.lang.Boolean |
getNormalization()
Returns the normalization value
|
java.lang.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() |
java.lang.String |
toString() |
private final java.lang.String locale
private final java.lang.Boolean caseLevel
private final CollationCaseFirst caseFirst
private final CollationStrength strength
private final java.lang.Boolean numericOrdering
private final CollationAlternate alternate
private final CollationMaxVariable maxVariable
private final java.lang.Boolean normalization
private final java.lang.Boolean backwards
private Collation(Collation.Builder builder)
public static Collation.Builder builder()
public static Collation.Builder builder(Collation options)
Collation
.options
- create a builder from existing optionspublic java.lang.String getLocale()
public java.lang.Boolean getCaseLevel()
public CollationCaseFirst getCaseFirst()
public CollationStrength getStrength()
public java.lang.Boolean getNumericOrdering()
public CollationAlternate getAlternate()
public CollationMaxVariable getMaxVariable()
Controls which characters are affected by collection alternate CollationAlternate.SHIFTED
.
public java.lang.Boolean getNormalization()
If true, normalizes text into Unicode NFD.
public java.lang.Boolean getBackwards()
public BsonDocument asDocument()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object