Package | Description |
---|---|
jsonvalues |
json-values is a one-package and zero-dependency library to work with jsons in a declarative and functional way.
|
jsonvalues.gen |
Modifier and Type | Method and Description |
---|---|
JsInt |
JsInt.map(IntUnaryOperator fn)
Maps this json integer into another one.
|
static JsInt |
JsInt.of(int n)
Static factory method to create a JsInt from an integer primitive type.
|
default JsInt |
JsValue.toJsInt()
Returns this JsValue as a JsInt
|
Modifier and Type | Method and Description |
---|---|
int |
JsInt.compareTo(JsInt o)
Compares two
JsInt objects numerically. |
Modifier and Type | Method and Description |
---|---|
Supplier<JsInt> |
JsIntGen.apply(Random seed)
Returns a supplier from the specified seed that generates a new JsInt each time it's called
|
static fun.gen.Gen<JsInt> |
JsIntGen.arbitrary()
Returns a generator that produces values uniformly distributed
|
static fun.gen.Gen<JsInt> |
JsIntGen.arbitrary(int min,
int max)
Returns a generator that produces values uniformly distributed over a specified interval
|
static fun.gen.Gen<JsInt> |
JsIntGen.biased()
returns a biased generators that produces, with higher probability, potential problematic values
that usually cause more bugs.
|
static fun.gen.Gen<JsInt> |
JsIntGen.biased(int min,
int max)
returns a biased generators that produces, with higher probability, potential problematic values
that usually cause more bugs.
|
Copyright © 2022. All rights reserved.