Module json_values

Class JsBoolGen

java.lang.Object
jsonvalues.gen.JsBoolGen
All Implemented Interfaces:
fun.gen.Gen<JsBool>, Function<Random,Supplier<JsBool>>

public final class JsBoolGen extends Object implements fun.gen.Gen<JsBool>
Represents a JsBool generator
  • Method Details

    • arbitrary

      public static fun.gen.Gen<JsBool> arbitrary()
      Returns a generator produces uniformed distributions of JsBool
      Returns:
      a JsBool generator
    • apply

      public Supplier<JsBool> apply(Random seed)
      Returns a supplier from the specified seed that generates a new JsBool each time it's called
      Specified by:
      apply in interface Function<Random,Supplier<JsBool>>
      Parameters:
      seed - the generator seed
      Returns:
      a JsBool supplier