Interface JsonPrinter<T>

Type Parameters:
T - the type of the object to print
All Superinterfaces:
Function<T,String>, org.approvej.print.Printer<T>
All Known Implementing Classes:
JsonPrettyPrinter, JsonStringPrettyPrinter

public interface JsonPrinter<T> extends org.approvej.print.Printer<T>
A Function that converts an object to a String in JSON format.
  • Field Summary

    Fields inherited from interface org.approvej.print.Printer

    DEFAULT_FILENAME_EXTENSION
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose
  • Method Details

    • filenameExtension

      default String filenameExtension()
      Specified by:
      filenameExtension in interface org.approvej.print.Printer<T>