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

org.mockserver.model.Parameters Maven / Gradle / Ivy

There is a newer version: 5.15.0
Show newest version
package org.mockserver.model;

import java.util.Collection;
import java.util.List;

/**
 * @author jamesdbloom
 */
public class Parameters extends KeysToMultiValues {

    public Parameters(List parameters) {
        withEntries(parameters);
    }

    public Parameters(Parameter... parameters) {
        withEntries(parameters);
    }

    @Override
    public Parameter build(NottableString name, Collection values) {
        return new Parameter(name, values);
    }

    public Parameters withKeyMatchStyle(KeyMatchStyle keyMatchStyle) {
        super.withKeyMatchStyle(keyMatchStyle);
        return this;
    }

    @SuppressWarnings("MethodDoesntCallSuperMethod")
    public Parameters clone() {
        return new Parameters().withEntries(getEntries());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy