WithMinWithMaxIntTemplate
io.github.cakelier.tuples.space.dsl.numeric.IntTemplate$.WithMinWithMaxIntTemplate
class WithMinWithMaxIntTemplate(min: Either[Int, Int], max: Either[Int, Int]) extends WithMinWithMaxIntegralTemplate[Int, CompleteIntTemplate]
The int template for which the minimum and the maximum values, either inclusive or exclusive, have been specified.
This template represents one for int 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
Members list
In this article