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

com.icthh.xm.commons.config.domain.Configuration Maven / Gradle / Ivy

There is a newer version: 4.0.12
Show newest version
package com.icthh.xm.commons.config.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = "path")
@Data
@Builder(builderMethodName = "of")
public class Configuration {
    private String path;
    private String content;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Configuration{");
        sb.append("path='").append(path).append('\'');
        if (content != null && content.length() > 100) {
            sb.append(", content.length='").append(content.length()).append('\'');
        } else {
            sb.append(", content='").append(content).append('\'');
        }
        sb.append('}');
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy