io.github.cakelier.tuples.space.JsonTemplate$.JsonNumericTemplate
See theJsonNumericTemplate companion object
sealed trait JsonNumericTemplate[+A] extends JsonTemplate
A JsonTemplate that can be matched against a numeric value.
This template represents all templates that can match a numeric value, so an integer, a long integer, a single precision floating point value and a double precision floating point value. For matching a numeric 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. 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 numeric JsonElement that this JsonTemplate can match
Attributes
- Companion
- object
- Graph
-
- Supertypes
- Known subtypes
-
trait JsonDoubleTemplatetrait JsonFloatTemplatetrait JsonIntegralTemplate[A]trait JsonIntTemplatetrait JsonLongTemplate
Members list
In this article