![JAR search and dependency download from the Maven repository](/logo.png)
com.fillumina.performance.util.StringOutputHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of performance-tools Show documentation
Show all versions of performance-tools Show documentation
Configurable tool to easily compare performances of different code
snippets and to take performance telemetry of a running application.
The newest version!
package com.fillumina.performance.util;
import java.io.Serializable;
/**
* Allows to print out to console without having to enclose
* a long code into {@code System.out.print()}.
*
* @author Francesco Illuminati
*/
public class StringOutputHolder implements Serializable {
private static final long serialVersionUID = 1L;
private final String output;
public StringOutputHolder(final String output) {
this.output = output;
}
public void print() {
System.out.println(output);
}
@Override
public String toString() {
return output;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy