Class ListBuilder<T>

java.lang.Object
rs.baselib.test.ListBuilder<T>
All Implemented Interfaces:
Builder<java.util.List<T>>

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

    Constructors 
    Constructor Description
    ListBuilder​(int min, int max, Builder<T> builder)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<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

    • ListBuilder

      public ListBuilder​(int min, int max, Builder<T> builder)
      Constructor.
      Parameters:
      min - - minimum number of objects to create
      max - - maximum number of objects to create
      builder - - builder to be used
  • Method Details

    • build

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