CompleteIntegralTemplate
io.github.cakelier.tuples.space.dsl.numeric.IntegralTemplate.CompleteIntegralTemplate
trait CompleteIntegralTemplate[A](min: Either[A, A], max: Either[A, A], multipleOf: A, converter: (Either[A, A], Either[A, A], Option[A]) => JsonIntegralTemplate[A])(implicit evidence$8: Integral[A]) extends Template
The "terminal" integral template, for which no more information can be specified for building a JsonIntegralTemplate.
This template represents the last stage in building an integral 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, so as the number which it should be a multiple of.
Type parameters
- A
-
the actual integral type for which instantiating this type
Attributes
- Constructor
-
creates a new instance of this trait given the already specified minimum, maximum and "multiple of" values and the function that returns a new JsonIntegralTemplate from this one
- Graph
-
- Supertypes
- Known subtypes
-
class CompleteIntTemplateclass CompleteLongTemplate
Members list
In this article