Interface Printer<T>

Type Parameters:
T - the type of the object to print
All Superinterfaces:
Function<T,String>
All Known Implementing Classes:
ObjectPrinter, ToStringPrinter

public interface Printer<T> extends Function<T,String>
A Function that converts an object to a String.
  • 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.

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • 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

    • filenameExtension

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