WithMultipleIntTemplate

io.github.cakelier.tuples.space.dsl.numeric.IntTemplate$.WithMultipleIntTemplate

The int template for which the "multiple of" value has been specified.

This template represents one for int values where the "multiple of" constraint has been specified. Now, a minimum or a maximum constraint can be specified, creating a range of acceptable values for the template to match. Neither of this constraints are mandatory to apply. This will produce a template for which either the minimum and the "multiple of" values have been specified, or the maximum and the "multiple of" values have been specified.

Attributes

Constructor

creates a new instance of this class specifying the divisor value

Graph
Supertypes

Members list

Value members

Inherited methods

def gt(min: Int): B

Adds the exclusive minimum that the integral value should satisfy to match the built template.

Adds the exclusive minimum that the integral value should satisfy to match the built template.

Value parameters

min

the exclusive minimum that the integral value should satisfy to match the built template

Attributes

Returns

a template which has stored the exclusive minimum and the "multiple of" information

Inherited from:
WithMultipleIntegralTemplate
def gte(min: Int): B

Adds the inclusive minimum that the integral value should satisfy to match the built template.

Adds the inclusive minimum that the integral value should satisfy to match the built template.

Value parameters

min

the inclusive minimum that the integral value should satisfy to match the built template

Attributes

Returns

a template which has stored the inclusive minimum and the "multiple of" information

Inherited from:
WithMultipleIntegralTemplate
def lt(max: Int): C

Adds the exclusive maximum that the integral value should satisfy to match the built template.

Adds the exclusive maximum that the integral value should satisfy to match the built template.

Value parameters

max

the exclusive maximum that the integral value should satisfy to match the built template

Attributes

Returns

a template which has stored the exclusive maximum and the "multiple of" information

Inherited from:
WithMultipleIntegralTemplate
def lte(max: Int): C

Adds the inclusive maximum that the integral value should satisfy to match the built template.

Adds the inclusive maximum that the integral value should satisfy to match the built template.

Value parameters

max

the inclusive maximum that the integral value should satisfy to match the built template

Attributes

Returns

a template which has stored the inclusive maximum and the "multiple of" information

Inherited from:
WithMultipleIntegralTemplate

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes
Inherited from:
WithMultipleIntegralTemplate