Package | Description |
---|---|
com.dslplatform.json | |
jsonvalues | |
jsonvalues.spec |
Modifier and Type | Method and Description |
---|---|
JsSpecParser |
JsSpecParsers.ofArrayOfNumberEachSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> p,
boolean nullable,
int min,
int max) |
JsSpecParser |
JsSpecParsers.ofNumberSuchThat(Function<JsNumber,Optional<fun.tuple.Pair<JsValue,ERROR_CODE>>> predicate,
boolean nullable) |
Modifier and Type | Class and Description |
---|---|
class |
JsBigDec
Represents an immutable json number of type BigDecimal.
|
class |
JsBigInt
Represents an immutable json number of type BigInteger.
|
class |
JsDouble
Represents an immutable json number of type double.
|
class |
JsInt
Represents an immutable json number of type integer.
|
class |
JsLong
Represents an immutable json number of type long.
|
Modifier and Type | Method and Description |
---|---|
default JsNumber |
JsValue.toJsNumber()
Returns this JsValue as a JsStr
|
Modifier and Type | Method and Description |
---|---|
static JsArraySpec |
JsSpecs.arrayOfNumber(Predicate<JsNumber> predicate)
non-nullable array of numbers, where each element of the array satisfies
the given predicate
|
static JsArraySpec |
JsSpecs.arrayOfNumber(Predicate<JsNumber> predicate,
int minLength,
int maxLength)
non-nullable array of numbers, where each element of the array satisfies
the given predicate
|
static JsSpec |
JsSpecs.number(Predicate<JsNumber> predicate)
non-nullable number that satisfies the given predicate
|
Copyright © 2022. All rights reserved.