Class ArrayBuilder<T>

java.lang.Object
rs.baselib.test.ArrayBuilder<T>
All Implemented Interfaces:
Builder<T[]>

public class ArrayBuilder<T>
extends java.lang.Object
implements Builder<T[]>
Creates random number of values from a builder.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    ArrayBuilder​(int min, int max, Builder<T> builder)
    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

    • ArrayBuilder

      public ArrayBuilder​(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 T[] build()
      Build the previously configured object.
      Specified by:
      build in interface Builder<T>
      Returns:
      the built object