public final class Collation
extends java.lang.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(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() |
public static Collation.Builder builder()
public static Collation.Builder builder(Collation options)
Collation
.options
- create a builder from existing options@Nullable public java.lang.String getLocale()
@Nullable public java.lang.Boolean getCaseLevel()
@Nullable public CollationCaseFirst getCaseFirst()
@Nullable public CollationStrength getStrength()
@Nullable public java.lang.Boolean getNumericOrdering()
@Nullable public CollationAlternate getAlternate()
@Nullable public CollationMaxVariable getMaxVariable()
Controls which characters are affected by collection alternate CollationAlternate.SHIFTED
.
@Nullable public java.lang.Boolean getNormalization()
If true, normalizes text into Unicode NFD.
@Nullable 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
Copyright © 2010 - 2020 Adobe. All Rights Reserved