Interface TextAccessor.TextProvider

All Known Subinterfaces:
Text<B>
All Known Implementing Classes:
AsciiArtBuilder, EscapeTextBuilder, HorizAlignTextBuilder, MoreTextBuilder, OverwriteTextBuilder, ReplaceTextBuilder, SecretHintBuilder, TextBlockBuilder, TextBorderBuilder, TruncateTextBuilder, VertAlignTextBuilder
Enclosing interface:
TextAccessor

public static interface TextAccessor.TextProvider
A provider interface provides a "toSomething(?)" method which converts a given instance into something else. The TextAccessor.TextProvider converts an implementing instance's state into String instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    The String being build by the builder upon the settings of the attributes.
    The Strings being build by the builder upon the settings of the attributes.
  • Method Details

    • toStrings

      String[] toStrings()
      The Strings being build by the builder upon the settings of the attributes.
      Returns:
      The according resulting String array
    • toString

      String toString()
      The String being build by the builder upon the settings of the attributes. In case more then one line has been set as input and the functionality of the builder is applied to each line in separate, then this method returns all of them lines concatenated with a line break between each of them (implementation depended).
      Overrides:
      toString in class Object
      Returns:
      The according resulting String