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

it.ness.queryable.model.api.Data Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
package it.ness.queryable.model.api;


import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class Data {
    private final Map values = new HashMap();

    public Data() {
    }

    public Data and(String name, Object value) {
        this.values.put(name, value);
        return this;
    }

    public Map map() {
        return Collections.unmodifiableMap(this.values);
    }

    public static Data with(String name, Object value) {
        return (new Data()).and(name, value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy