Class PAreaIGenerator<S>

java.lang.Object
com.io7m.jregions.generators.PAreaIGenerator<S>
Type Parameters:
S - A phantom type parameter indicating the coordinate space of the area
All Implemented Interfaces:
net.java.quickcheck.Generator<PAreaI<S>>

public final class PAreaIGenerator<S> extends Object implements net.java.quickcheck.Generator<PAreaI<S>>
A generator for areas.
  • Constructor Details

    • PAreaIGenerator

      public PAreaIGenerator(net.java.quickcheck.Generator<Integer> in_gen)
      Create a new generator.
      Parameters:
      in_gen - A number generator
  • Method Details

    • create

      public static <S> PAreaIGenerator<S> create()
      Type Parameters:
      S - A phantom type parameter indicating the coordinate space of the area
      Returns:
      A generator initialized with useful defaults
    • next

      public PAreaI<S> next()
      Specified by:
      next in interface net.java.quickcheck.Generator<S>