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

com.lumiomedical.flow.io.input.InputMap Maven / Gradle / Ivy

package com.lumiomedical.flow.io.input;

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

/**
 * @author Pierre Lecerf ([email protected])
 * Created on 2020/12/23
 */
public class InputMap implements Input
{
    private final Map values;

    InputMap()
    {
        this.values = new HashMap<>();
    }

    @Override
    public  InputMap and(String identifier, T value)
    {
        this.values.put(identifier, value);
        return this;
    }

    @Override
    public boolean has(String identifier)
    {
        return this.values.containsKey(identifier);
    }

    @Override
    public Object get(String identifier)
    {
        return this.values.get(identifier);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy