Interface PrintFormat<T>

Type Parameters:
T - the type of the object to print
All Known Implementing Classes:
MultiLineStringPrintFormat, SingleLineStringPrintFormat

public interface PrintFormat<T>
A format to print values of type T, as defined by a Printer and a suggested filenameExtension().
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The default filename extension for files that the printed value is written to.
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    Returns the suggested filename extension for the printed object.
    Returns the printer implementing this format.
  • Field Details

    • DEFAULT_FILENAME_EXTENSION

      static final String DEFAULT_FILENAME_EXTENSION
      The default filename extension for files that the printed value is written to.
      See Also:
  • Method Details

    • printer

      Printer<T> printer()
      Returns the printer implementing this format.
      Returns:
      the printer implementing this format
    • filenameExtension

      default String filenameExtension()
      Returns the suggested filename extension for the printed object. Defaults to "txt"<T> if not overridden.
      Returns:
      the suggested filename extension