org.fiolino.common.util.SerialPresenter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
General structure to easily create dynamic logic via MethodHandles and others.
package org.fiolino.common.util;
/**
* Prints a serialized form of some value into a StringBuilder.
*
* Created by kuli on 29.12.15.
*/
interface SerialPresenter {
/**
* Prints the given value into the StringBuilder.
*
* @param sb The target
* @param value The value
*/
void printInto(StringBuilder sb, T value);
/**
* Prints a description of the presenter, used for debug output.
*
* @param sb The target
*/
void printDescription(StringBuilder sb);
}