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

com.jparams.test.tostring.template.TemplateBuilder Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.jparams.test.tostring.template;

import java.util.ArrayList;
import java.util.List;

import com.jparams.test.tostring.template.matcher.Matcher;

public class TemplateBuilder
{
    private final List matchers;

    public TemplateBuilder()
    {
        this.matchers = new ArrayList<>();
    }

    public TemplateBuilder match(final Matcher matcher)
    {
        this.matchers.add(matcher);
        return this;
    }

    public Template build()
    {
        return new Template(matchers);
    }

    public static TemplateBuilder newTemplate()
    {
        return new TemplateBuilder();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy