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

org.mobicents.javax.media.mscontrol.ParametersImpl Maven / Gradle / Ivy

package org.mobicents.javax.media.mscontrol;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import javax.media.mscontrol.Parameter;
import javax.media.mscontrol.Parameters;

/**
 * 
 * @author amit bhayani
 * 
 */
public class ParametersImpl implements Parameters {

    Map parameters;

    public ParametersImpl() {
        parameters = new HashMap();
    }

    public void clear() {
        parameters.clear();
    }

    public boolean containsKey(Object key) {
        return parameters.containsKey(key);
    }

    public boolean containsValue(Object value) {
        return parameters.containsValue(value);
    }

    public Set> entrySet() {
        return parameters.entrySet();
    }

    public Object get(Object key) {
        return parameters.get(key);
    }

    public boolean isEmpty() {
        return parameters.isEmpty();
    }

    public Set keySet() {
        return parameters.keySet();
    }

    public Object put(Parameter key, Object value) {
        return parameters.put(key, value);
    }

    public void putAll(Map t) {
        parameters.putAll(t);
    }

    public Object remove(Object key) {
        return parameters.remove(key);
    }

    public int size() {
        return parameters.size();
    }

    public Collection values() {
        return parameters.values();
    }
    
    @Override
    public String toString() {
        return this.parameters.toString();
    }
}