Package org.approvej.print
Class ObjectPrinter<T>
java.lang.Object
org.approvej.print.ObjectPrinter<T>
- Type Parameters:
T
- the type of the object to be printed
A generic printer for Java
Object
s that prints their properties and values one per line.-
Field Summary
FieldsModifier and TypeFieldDescriptionASet
of methods that won't be regarded as property getters.ASet
of classes that will be printed directly.Fields inherited from interface org.approvej.print.Printer
DEFAULT_FILENAME_EXTENSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ObjectPrinter
<T> Creates a newObjectPrinter
instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.approvej.print.Printer
filenameExtension
-
Field Details
-
Constructor Details
-
ObjectPrinter
public ObjectPrinter()Creates a newObjectPrinter
instance that prints the given object.This constructor is public to allow instantiation via reflection, e.g. in the
Configuration
class.
-
-
Method Details
-
objectPrinter
Creates a newObjectPrinter
instance.- Type Parameters:
T
- the type of the object to be printed- Returns:
- a new
ObjectPrinter
instance
-
apply
-