Class EnumerationBuilder<T extends java.lang.Enum<T>>

java.lang.Object
rs.baselib.test.EnumerationBuilder<T>
All Implemented Interfaces:
Builder<T>

public class EnumerationBuilder<T extends java.lang.Enum<T>>
extends java.lang.Object
implements Builder<T>
Selects values from an enumeration (randomly).
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    EnumerationBuilder​(java.lang.Class<T> clazz)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    T build()
    Build the previously configured object.

    Methods inherited from class java.lang.Object

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

    • EnumerationBuilder

      public EnumerationBuilder​(java.lang.Class<T> clazz)
      Constructor.
      Parameters:
      clazz - the enumeration class
  • Method Details

    • build

      public T build()
      Build the previously configured object.
      Specified by:
      build in interface Builder<T extends java.lang.Enum<T>>
      Returns:
      the built object