Interface ArrayLengthOptions

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ArrayLengthOptions.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.838Z")
    @Stability(Stable)
    public interface ArrayLengthOptions
    extends software.amazon.jsii.JsiiSerializable
    Options for the ArrayLength matcher.
    • Method Detail

      • getMaxLength

        @Stability(Stable)
        @Nullable
        default Number getMaxLength()
        The maximum length for the array - must be greater than minimum length.

        Default infinity.

      • getMinLength

        @Stability(Stable)
        @Nullable
        default Number getMinLength()
        The minimum length for the array - must be greater than zero, otherwise empty arrays pass and you wouldn't be testing the array contents.

        Default 1.