io.github.linmoure.dto.KeyValue Maven / Gradle / Ivy
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