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

org.nlpcn.es4sql.domain.KVValue Maven / Gradle / Ivy

There is a newer version: 7.8.0.1
Show newest version
package org.nlpcn.es4sql.domain;

public class KVValue implements Cloneable {
    public String key;
    public Object value;

    public KVValue(Object value) {
        this.value = value;
    }

    public KVValue(String key, Object value) {
        if (key != null) {
            this.key = key.replace("'", "");
        }
        this.value = value;
    }

    @Override
    public String toString() {
        if (key == null) {
            return value.toString();
        } else {
            return key + "=" + value;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy