Class ArrayLength.Builder
- java.lang.Object
-
- io.contract_testing.contractcase.definitions.matchers.arrays.ArrayLength.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ArrayLength>
- Enclosing class:
- ArrayLength
@Stability(Stable) public static final class ArrayLength.Builder extends Object implements software.amazon.jsii.Builder<ArrayLength>
A fluent builder forArrayLength.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayLengthbuild()static ArrayLength.Buildercreate()ArrayLength.BuildermaxLength(Number maxLength)The maximum length for the array - must be greater than minimum length.ArrayLength.BuilderminLength(Number minLength)The minimum length for the array - must be greater than zero, otherwise empty arrays pass and you wouldn't be testing the array contents.
-
-
-
Method Detail
-
create
@Stability(Stable) public static ArrayLength.Builder create()
- Returns:
- a new instance of
ArrayLength.Builder.
-
maxLength
@Stability(Stable) public ArrayLength.Builder maxLength(Number maxLength)
The maximum length for the array - must be greater than minimum length.Default infinity.
- Parameters:
maxLength- The maximum length for the array - must be greater than minimum length. This parameter is required.- Returns:
this
-
minLength
@Stability(Stable) public ArrayLength.Builder minLength(Number minLength)
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.
- Parameters:
minLength- The minimum length for the array - must be greater than zero, otherwise empty arrays pass and you wouldn't be testing the array contents. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public ArrayLength build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ArrayLength>- Returns:
- a newly built instance of
ArrayLength.
-
-