public final class JsInstantGen extends Object implements fun.gen.Gen<JsInstant>
biased
and arbitrary
or, if none of the previous suit your
needs, from a double generator and the function map:
import fun.gen.Gen;
import jsonvalues.JsInstant;
Gen<Instant> instantGen = seed -> () -> {...};
Gen<JsInstant> jsInstantGen = gen.map(JsInstant::of)
Arbitrary generators produces uniformed distributions of values. Biased generators produces, with higher probability, potential problematic values that usually cause more bugs.
Modifier and Type | Method and Description |
---|---|
Supplier<JsInstant> |
apply(Random seed)
Returns a supplier from the specified seed that generates a new JsInstant each time it's called
|
static fun.gen.Gen<JsInstant> |
arbitrary() |
static fun.gen.Gen<JsInstant> |
arbitrary(long min,
long max) |
static fun.gen.Gen<JsInstant> |
arbitrary(ZonedDateTime min,
ZonedDateTime max) |
static fun.gen.Gen<JsInstant> |
biased() |
static fun.gen.Gen<JsInstant> |
biased(long min,
long max) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static fun.gen.Gen<JsInstant> biased()
public static fun.gen.Gen<JsInstant> arbitrary()
public static fun.gen.Gen<JsInstant> arbitrary(long min, long max)
public static fun.gen.Gen<JsInstant> arbitrary(ZonedDateTime min, ZonedDateTime max)
public static fun.gen.Gen<JsInstant> biased(long min, long max)
Copyright © 2022. All rights reserved.