CompleteNumericTemplate

io.github.cakelier.tuples.space.dsl.numeric.NumericTemplate.CompleteNumericTemplate
trait CompleteNumericTemplate[A](min: Either[A, A], max: Either[A, A], converter: (Either[A, A], Either[A, A]) => JsonNumericTemplate[A])(implicit evidence$4: Numeric[A]) extends Template

The "terminal" numeric template, for which no more information can be specified for building a JsonNumericTemplate.

This template represents the last stage in building a numeric template, meaning that no more constraints can be specified. The range for the value has already been specified as a minimum and maximum allowed values, either inclusive or exclusive.

Type parameters

A

the actual numeric type for which instantiating this type

Attributes

Constructor

creates a new instance of this trait given the already specified minimum and maximum values and the function that returns a new JsonNumericTemplate from this one

Graph
Supertypes
trait Template
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

Converts this template to its corresponding JsonTemplate.

Converts this template to its corresponding JsonTemplate.

Attributes

Definition Classes