All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.projen.ICompareString Maven / Gradle / Ivy

The newest version!
package io.github.cdklabs.projen;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.105.0 (build 0a2adcb)", date = "2024-11-15T17:03:54.793Z")
@software.amazon.jsii.Jsii(module = io.github.cdklabs.projen.$Module.class, fqn = "projen.ICompareString")
@software.amazon.jsii.Jsii.Proxy(ICompareString.Jsii$Proxy.class)
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
public interface ICompareString extends software.amazon.jsii.JsiiSerializable {

    /**
     * @return 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.
     * @param a The first string. This parameter is required.
     * @param b The second string. This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    @org.jetbrains.annotations.NotNull java.lang.Number compare(final @org.jetbrains.annotations.NotNull java.lang.String a, final @org.jetbrains.annotations.NotNull java.lang.String b);

    /**
     * A proxy class which represents a concrete javascript instance of this type.
     */
    @software.amazon.jsii.Internal
    final class Jsii$Proxy extends software.amazon.jsii.JsiiObject implements io.github.cdklabs.projen.ICompareString.Jsii$Default {
        protected Jsii$Proxy(final software.amazon.jsii.JsiiObjectRef objRef) {
            super(objRef);
        }

        /**
         * @return 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.
         * @param a The first string. This parameter is required.
         * @param b The second string. This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        public final @org.jetbrains.annotations.NotNull java.lang.Number compare(final @org.jetbrains.annotations.NotNull java.lang.String a, final @org.jetbrains.annotations.NotNull java.lang.String b) {
            return software.amazon.jsii.Kernel.call(this, "compare", software.amazon.jsii.NativeType.forClass(java.lang.Number.class), new Object[] { java.util.Objects.requireNonNull(a, "a is required"), java.util.Objects.requireNonNull(b, "b is required") });
        }
    }

    /**
     * Internal default implementation for {@link ICompareString}.
     */
    @software.amazon.jsii.Internal
    interface Jsii$Default extends ICompareString {

        /**
         * @return 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.
         * @param a The first string. This parameter is required.
         * @param b The second string. This parameter is required.
         */
        @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
        @Override
        default @org.jetbrains.annotations.NotNull java.lang.Number compare(final @org.jetbrains.annotations.NotNull java.lang.String a, final @org.jetbrains.annotations.NotNull java.lang.String b) {
            return software.amazon.jsii.Kernel.call(this, "compare", software.amazon.jsii.NativeType.forClass(java.lang.Number.class), new Object[] { java.util.Objects.requireNonNull(a, "a is required"), java.util.Objects.requireNonNull(b, "b is required") });
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy