Class ArrayLength
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.contract_testing.contractcase.definitions.matchers.base.AnyMatcher
-
- io.contract_testing.contractcase.definitions.matchers.arrays.ArrayLength
-
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)", date="2025-08-20T01:46:20.838Z") @Stability(Stable) public class ArrayLength extends AnyMatcher
Matches an Array whose length is within the specified range (or 1-infinity if not specified).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classArrayLength.BuilderA fluent builder forArrayLength.
-
Constructor Summary
Constructors Modifier Constructor Description ArrayLength(ArrayLengthOptions options)Matches an Array whose length is within the specified range (or 1-infinity if not specified).protectedArrayLength(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)protectedArrayLength(software.amazon.jsii.JsiiObjectRef objRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjecttoJSON()For non-TypeScript implementations (seeAnyMatcher.toJSON).-
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
-
-
-
Constructor Detail
-
ArrayLength
protected ArrayLength(software.amazon.jsii.JsiiObjectRef objRef)
-
ArrayLength
protected ArrayLength(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
ArrayLength
@Stability(Stable) public ArrayLength(@NotNull ArrayLengthOptions options)Matches an Array whose length is within the specified range (or 1-infinity if not specified).- Parameters:
options-- An
ArrayLengthOptionsobject with optional minLength (default 1) and maxLength (default infinity) properties.
- An
-
-
Method Detail
-
toJSON
@Stability(Stable) @NotNull public Object toJSON()
For non-TypeScript implementations (seeAnyMatcher.toJSON).- Overrides:
toJSONin classAnyMatcher- Returns:
- An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}
-
-