Class StringBuilder

java.lang.Object
rs.baselib.test.StringBuilder
All Implemented Interfaces:
Builder<java.lang.String>

public class StringBuilder
extends java.lang.Object
implements Builder<java.lang.String>
A string builder.
Author:
ralph
  • Constructor Summary

    Constructors 
    Constructor Description
    StringBuilder()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String build()
    Build the previously configured object.
    StringBuilder withPattern​(java.lang.String pattern)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • withPattern

      public StringBuilder withPattern​(java.lang.String pattern)
      Parameters:
      pattern - - the format pattern that contains %s for the uniqueness.
      Returns:
      this builder for concatenation
    • build

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