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

org.jobrunr.utils.diagnostics.DiagnosticsTitle Maven / Gradle / Ivy

Go to download

An easy way to perform background processing on the JVM. Backed by persistent storage. Open and free for commercial use.

There is a newer version: 7.4.1
Show newest version
package org.jobrunr.utils.diagnostics;

public class DiagnosticsTitle implements DiagnosticsItem {

    private int level;
    private String title;

    public DiagnosticsTitle(String title) {
        this(0, title);
    }

    public DiagnosticsTitle(int level, String title) {
        this.level = level;
        this.title = title;
    }

    public DiagnosticsTitle(int shiftLevel, DiagnosticsTitle title) {
        this.level = shiftLevel + title.level;
        this.title = title.title;
    }

    @Override
    public String toMarkdown() {
        return new String(new char[level + 2]).replace("\0", "#") + " " + title + "\n";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy