WithMinWithMaxLongTemplate

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

The long template for which the minimum and the maximum values, either inclusive or exclusive, have been specified.

This template represents one for long values where the minimum and the maximum constraints, whether they are inclusive or exclusive, have been specified. Now, a "multiple of" constraint can be specified, allowing to match only the values which are multiple of this number. This constraints is not mandatory to apply. This will produce a "complete" template for which no more constraints can be specified.

Attributes

Constructor

creates a new instance of this class specifying the minimum and the maximum values, being scala.util.Lefts if they are inclusive, or scala.util.Rights if they are exclusive

Graph
Supertypes
trait Template
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def div(multipleOf: Long): B

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 "terminal" template, which has stored the minimum, the maximum and the "multiple of" information

Inherited from:
WithMinWithMaxIntegralTemplate

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes
Inherited from:
WithMinWithMaxIntegralTemplate