Interface ICompareString.Jsii$Default

    • Method Detail

      • compare

        @Stability(Experimental)
        @NotNull
        default Number compare​(@NotNull
                               String a,
                               @NotNull
                               String b)
        Specified by:
        compare in interface ICompareString
        Parameters:
        a - The first string. This parameter is required.
        b - The second string. This parameter is required.
        Returns:
        It is expected to return a negative value if the first argument is less than the second argument, zero if they're equal, and a positive value otherwise.