Class OneOfGenerator<Context extends GeneratorContext<Context>,T>

  • All Implemented Interfaces:
    Generator<Context,T>

    public class OneOfGenerator<Context extends GeneratorContext<Context>,T>
    extends java.lang.Object
    implements Generator<Context,T>
    Default generator for selecting one of a set of values of the same type..
    • Constructor Summary

      Constructors 
      Constructor Description
      OneOfGenerator​(java.util.Collection<T> selection)  
      OneOfGenerator​(T... selection)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T generate​(Context ctx)  
      • Methods inherited from class java.lang.Object

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

      • OneOfGenerator

        @SafeVarargs
        public OneOfGenerator​(T... selection)
      • OneOfGenerator

        public OneOfGenerator​(@Nonnull
                              java.util.Collection<T> selection)