Package org.github.jamm.listeners
Class TreePrinter.Factory
java.lang.Object
org.github.jamm.listeners.TreePrinter.Factory
- All Implemented Interfaces:
MemoryMeterListener.Factory
- Enclosing class:
- TreePrinter
Factory for
TreePrinter
instances.-
Constructor Summary
ConstructorsConstructorDescriptionFactory
(int maxDepth) Creates a newFactory
instance which createTreePrinter
that will print the visited trees up to the specified maxDepth. -
Method Summary
-
Constructor Details
-
Factory
public Factory(int maxDepth) Creates a newFactory
instance which createTreePrinter
that will print the visited trees up to the specified maxDepth.- Parameters:
maxDepth
- the maximum depth of the trees to be printed
-
-
Method Details
-
newInstance
- Specified by:
newInstance
in interfaceMemoryMeterListener.Factory
-