"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StringBuilder = void 0;
const StringUtils_1 = require("./StringUtils");
class StringBuilder {
    constructor(value) {
        this.strings = [];
        this.append(value);
    }
    append(value) {
        if ((0, StringUtils_1.isNotEmpty)(value)) {
            this.strings.push(value);
        }
        return this;
    }
    clear() {
        this.strings.length = 1;
    }
    toString() {
        return this.strings.join('');
    }
}
exports.StringBuilder = StringBuilder;
