Class PVolumeIGenerator<S>

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

public final class PVolumeIGenerator<S>
extends java.lang.Object
implements net.java.quickcheck.Generator<PVolumeI<S>>
A generator for volumes.
  • Constructor Summary

    Constructors 
    Constructor Description
    PVolumeIGenerator​(net.java.quickcheck.Generator<java.lang.Integer> in_gen)
    Create a new generator.
  • Method Summary

    Modifier and Type Method Description
    static <S> PVolumeIGenerator<S> create()  
    PVolumeI<S> next()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PVolumeIGenerator

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

    • create

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

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