Interface VarString.Appendable

Enclosing class:
VarString

public static interface VarString.Appendable
Implementors of this interface handle appending their specific string representation directly.
This is useful for preventing the instantiation and copying of potentially large temporary strings which can have unnecessary and devastatingly negative effects on performance.
  • Method Summary

    Modifier and Type Method Description
    VarString appendTo​(VarString vs)
    Append a string of characters to the passed VarString instance in whatever form deemed appropriate by the implementor.
  • Method Details

    • appendTo

      VarString appendTo​(VarString vs)
      Append a string of characters to the passed VarString instance in whatever form deemed appropriate by the implementor.
      Parameters:
      vs - the VarString instance to append to.
      Returns:
      the same VarString instance that has been passed to allow method chaining.