Interface ICompareString

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Subinterfaces:
    ICompareString.Jsii$Default
    All Known Implementing Classes:
    ICompareString.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.100.0 (build 6a776be)",
               date="2024-06-21T23:10:11.675Z")
    @Stability(Experimental)
    public interface ICompareString
    extends software.amazon.jsii.JsiiSerializable
    • Method Detail

      • compare

        @Stability(Experimental)
        @NotNull
        Number compare​(@NotNull
                       String a,
                       @NotNull
                       String b)
        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.