WithMaximumDoubleTemplate

io.github.cakelier.tuples.space.dsl.numeric.DoubleTemplate$.WithMaximumDoubleTemplate

The double template for which the maximum value, either inclusive or exclusive, has been specified.

This template represents one for double values where the maximum constraint, whether it be an inclusive or exclusive one, has been specified. Now, only a minimum constraint can be specified, closing the now half-open interval. This is not mandatory to do. 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 maximum value, being a scala.util.Left if it inclusive, or a scala.util.Right if it is exclusive

Graph
Supertypes
trait Template
class Object
trait Matchable
class Any

Members list

Value members

Inherited methods

def gt(min: Double): B

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

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

Value parameters

min

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

Attributes

Returns

a "terminal" template, which has stored the exclusive minimum and the maximum information

Inherited from:
WithMaximumNumericTemplate
def gte(min: Double): B

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

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

Value parameters

min

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

Attributes

Returns

a "terminal" template, which has stored the inclusive minimum and the maximum information

Inherited from:
WithMaximumNumericTemplate

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes
Inherited from:
WithMaximumNumericTemplate