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

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

Go to download

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

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

import io.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