io.github.cakelier.tuples.space.JsonTemplate$.JsonNumericTemplate$.JsonIntegralTemplate
See theJsonIntegralTemplate companion object
sealed trait JsonIntegralTemplate[+A] extends JsonNumericTemplate[A]
A JsonTemplate that can be matched against an integral value.
This template represents all templates that can match an integral value, so an integer or a long integer. For matching an integral JsonElement, it can be specified a constant value, an inclusive range for the JsonElement or an inclusive one, both of which can be half-open. Also, it can be specified a value for which the JsonElement should be multiple of. If multiple constraint are specified, all of them must be true in order to match with this template, independently of the satisfiability of said constraints. If no constraint is specified, only the type equality will be checked.
Type parameters
- A
-
the type of the integral JsonElement that this JsonTemplate can match
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait JsonIntTemplatetrait JsonLongTemplate
Members list
In this article