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

io.smilego.tenant.util.LogBuilder Maven / Gradle / Ivy

Go to download

A application used as an example on how to set up pushing its components to the Central Repository.

There is a newer version: 1.2.5
Show newest version
package io.smilego.tenant.util;

public class LogBuilder {

    private String header;
    private String rows;

    public LogBuilder() {
    }

    public LogBuilder(String header, String rows) {
        super();
        this.header = header;
        this.rows = rows;
    }

    public static LogBuilder of() {
        return new LogBuilder("", "");
    }

    public LogBuilder header(String header) {
        this.header = " => " + header;
        return this;
    }

    public LogBuilder row(String row) {
        this.rows += "\n - " + row;
        return this;
    }

    public LogBuilder row(String description, Object value) {
        this.rows += "\n - " + description + ": " + String.valueOf(value);
        return this;
    }

    public String build() {
        return header + rows;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy