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

ml.alternet.facet.Presentable Maven / Gradle / Ivy

Go to download

Alternet Tools include discovery service tools, concurrent and locking tools, and more

The newest version!
package ml.alternet.facet;

/**
 * A Presentable object can provide a pretty string representation of
 * itself.
 *
 * 

* Usefull for console and logs outputs. *

* * @author Philippe Poulard */ public interface Presentable { /** * Return a pretty string representation of this. * * @return A new string buffer. */ default StringBuilder toPrettyString() { return toPrettyString(new StringBuilder()); } /** * Append a pretty string representation of this to the given buffer. * * @param buf * The buffer to append to. * * @return The buffer given. */ StringBuilder toPrettyString(StringBuilder buf); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy