Package | Description |
---|---|
jsonvalues |
The `jsonvalues` package provides a set of classes and interfaces for working with JSON (JavaScript Object Notation) data in a type-safe and structured manner.
|
jsonvalues.gen |
This package contains a set of generators for creating JSON-like data structures using the `jsonvalues` library.
|
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) |
static fun.gen.Gen<JsInt> |
JsIntGen.arbitrary()
Returns a generator that produces values with a uniform distribution.
|
static fun.gen.Gen<JsInt> |
JsIntGen.arbitrary(int min)
Returns a generator that produces values uniformly distributed over the interval [min,Integer.MAX_VALUE].
|
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 generator that produces potential problematic values with a higher probability.
|
static fun.gen.Gen<JsInt> |
JsIntGen.biased(int min)
Returns a biased generator that produces potential problematic values with a higher probability.
|
static fun.gen.Gen<JsInt> |
JsIntGen.biased(int min,
int max)
Returns a biased generator that produces potential problematic values with a higher probability.
|
Copyright © 2023. All rights reserved.