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

tech.rsqn.cacheservice.support.DelimitedKey Maven / Gradle / Ivy

package tech.rsqn.cacheservice.support;


public class DelimitedKey {
    public static final String delimiter = ".";
    private String s;

    protected DelimitedKey() {
    }

    public static DelimitedKey with(Object o) {
        DelimitedKey builder = new DelimitedKey();
        builder.s = o.toString();

        return builder;
    }

    public DelimitedKey and(Object o) {
        s += (delimiter + o.toString());

        return this;
    }

    @Override
    public String toString() {
        return s;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy