EmptyLongTemplate

io.github.cakelier.tuples.space.dsl.numeric.LongTemplate$.EmptyLongTemplate

The "empty" long template, capable of matching any value of the long type.

This is the starting template from which creating any other long template by specifying more and more constraints. Being so, it is allowed to add a minimum value, either inclusive or exclusive, or a maximum value, either inclusive or exclusive, to create a new template from this. It is also allowed to specify a number of which the matched long should be multiple of for creating a new template.

Attributes

Graph
Supertypes

Members list

Value members

Inherited methods

def div(multipleOf: Long): G

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 "multiple of" information

Inherited from:
EmptyIntegralTemplate
def gt(min: Long): 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 information

Inherited from:
EmptyIntegralTemplate
def gte(min: Long): 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 information

Inherited from:
EmptyIntegralTemplate
def lt(max: Long): 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 information

Inherited from:
EmptyIntegralTemplate
def lte(max: Long): 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 information

Inherited from:
EmptyIntegralTemplate

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes
Inherited from:
EmptyIntegralTemplate