Class Collation.Builder

    • Method Detail

      • caseLevel

        public Collation.Builder caseLevel(@Nullable
                                           Boolean caseLevel)
        Sets the case level value

        Turns on case sensitivity

        Parameters:
        caseLevel - the case level value
        Returns:
        this
      • collationCaseFirst

        public Collation.Builder collationCaseFirst(@Nullable
                                                    CollationCaseFirst caseFirst)
        Sets the collation case first value

        Determines if Uppercase or lowercase values should come first

        Parameters:
        caseFirst - the collation case first value
        Returns:
        this
      • numericOrdering

        public Collation.Builder numericOrdering(@Nullable
                                                 Boolean numericOrdering)
        Sets the numeric ordering
        Parameters:
        numericOrdering - if true will order numbers based on numerical order and not collation order
        Returns:
        this
      • collationAlternate

        public Collation.Builder collationAlternate(@Nullable
                                                    CollationAlternate alternate)
        Sets the alternate

        Controls whether spaces and punctuation are considered base characters

        Parameters:
        alternate - the alternate
        Returns:
        this
      • normalization

        public Collation.Builder normalization(@Nullable
                                               Boolean normalization)
        Sets the normalization value

        If true, normalizes text into Unicode NFD.

        Parameters:
        normalization - the normalization value
        Returns:
        this
      • backwards

        public Collation.Builder backwards(@Nullable
                                           Boolean backwards)
        Sets the backwards value

        Causes secondary differences to be considered in reverse order, as it is done in the French language

        Parameters:
        backwards - the backwards value
        Returns:
        this
      • build

        public Collation build()
        Creates a new Collation object with the settings initialised on this builder.
        Returns:
        a new Collation object