Package io.github.cdklabs.projen
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceICompareString.Jsii$DefaultInternal default implementation forICompareString.static classICompareString.Jsii$ProxyA proxy class which represents a concrete javascript instance of this type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Numbercompare(String a, String b)
-
-
-
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.
-
-