WithMinimumIntTemplate

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

The int template for which the minimum value, either inclusive or exclusive, has been specified.

This template represents one for int values where the minimum constraint, whether it be an inclusive or exclusive one, has been specified. Now, a maximum constraint can be specified, closing the now half-open interval, or a "multiple of" constraint can be specified, allowing to match only the values which are multiple of this number. Neither of this constraints are mandatory to apply. This will produce a template for which either the minimum and the maximum values have been specified, or the minimum and the "multiple of" values have been specified.

Attributes

Constructor

creates a new instance of this class specifying the minimum value, being a scala.util.Left if it inclusive, or a scala.util.Right if it is exclusive

Graph
Supertypes

Members list

Value members

Inherited methods

def div(multipleOf: Int): C

Adds the number that the integral value should be multiple of to match the built template.

Adds the number that the integral value should be multiple of to match the built template.

Value parameters

multipleOf

the number that the integral value should be multiple of to match the built template

Attributes

Returns

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

Inherited from:
WithMinimumIntegralTemplate
def lt(max: Int): B

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 minimum and the exclusive maximum information

Inherited from:
WithMinimumIntegralTemplate
def lte(max: Int): B

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 minimum and the inclusive maximum information

Inherited from:
WithMinimumIntegralTemplate

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes
Inherited from:
WithMinimumIntegralTemplate