Class ObjectPrinter<T>

java.lang.Object
org.approvej.print.ObjectPrinter<T>
Type Parameters:
T - the type of the object to be printed
All Implemented Interfaces:
Function<T,String>, Printer<T>

@NullMarked public class ObjectPrinter<T> extends Object implements Printer<T>
A generic printer for Java Objects that prints their properties and values one per line.
  • Field Details

    • EXCLUDED_METHODS

      public static final Set<String> EXCLUDED_METHODS
      A Set of methods that won't be regarded as property getters.
    • SIMPLE_TYPES

      public static final Set<Class<?>> SIMPLE_TYPES
      A Set of classes that will be printed directly.
  • Method Details