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

com.rethinkdb.ast.helper.OptionalArguments Maven / Gradle / Ivy

The newest version!
package com.rethinkdb.ast.helper;

import java.util.HashMap;
import java.util.List;

public class OptionalArguments extends HashMap {

    public OptionalArguments() {
        super();
    }

    public OptionalArguments with(String key, Object value) {
        if (value != null) {
            put(key, value);
        }
        return this;
    }

    public OptionalArguments with(String key, List value) {
        if (value != null) {
            put(key, value);
        }
        return this;
    }

}