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

io.nosqlbench.virtdata.processors.DocForFuncCtor Maven / Gradle / Ivy

Go to download

Statistical sampling library for use in virtdata libraries, based on apache commons math 4

There is a newer version: 5.17.0
Show newest version
package io.nosqlbench.virtdata.processors;

import io.nosqlbench.virtdata.annotations.ExampleData;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class DocForFuncCtor implements DocCtorData {

    private Map args = new LinkedHashMap<>();
    private String ctorDoc;
    private String className;
    private List> examples = new ArrayList<>();

    public DocForFuncCtor(String className, String ctorDoc, Map args, List> examples) {
        this.className = className;
        this.ctorDoc = ctorDoc;
        this.args.putAll(args);
        ExampleData.validateExamples(examples);
        this.examples.addAll(examples);
    }


    @Override
    public String getClassName() {
        return this.className;
    }

    @Override
    public String getCtorJavaDoc() {
        return ctorDoc;
    }

    @Override
    public String toString() {
        return "Ctor{" +
                "class=" + className +
                ", args=" + args +
                ", ctorDoc='" + ctorDoc + '\'' +
                '}';
    }

    @Override
    public Map getArgs() {
        return args;
    }

    @Override
    public List> getExamples() {
        return examples;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy