public final class Collation extends Object
| Modifier and Type | Class | Description | 
|---|---|---|
| static class  | Collation.Builder | A Collation builder. | 
| Modifier and Type | Method | 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 options@Nullable public String getLocale()
@Nullable public Boolean getCaseLevel()
@Nullable public CollationCaseFirst getCaseFirst()
@Nullable public CollationStrength getStrength()
@Nullable public Boolean getNumericOrdering()
@Nullable public CollationAlternate getAlternate()
@Nullable public CollationMaxVariable getMaxVariable()
Controls which characters are affected by collection alternate CollationAlternate.SHIFTED.
@Nullable public Boolean getNormalization()
If true, normalizes text into Unicode NFD.
@Nullable public Boolean getBackwards()
public BsonDocument asDocument()