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

io.github.linmoure.dto.KeyValue Maven / Gradle / Ivy

There is a newer version: 1.1.1
Show newest version
package io.github.linmoure.dto;

import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
public class KeyValue {
    private String name;
    private String value;
    private String contentType;

    public KeyValue() {
        this(null, null);
    }

    public KeyValue(String name, String value) {
        this(name, value, null);
    }


    public KeyValue(String name, String value, String contentType) {
        this.name = name;
        this.value = value;
        this.contentType = contentType;
    }


    public boolean valueIsNotEmpty() {
        return StringUtils.isNotEmpty(this.getValue());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy