All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fiolino.common.util.SerialPresenter Maven / Gradle / Ivy

Go to download

General structure to easily create dynamic logic via MethodHandles and others.

There is a newer version: 1.0.10
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy