Interface Printer<T>

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

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