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

de.alexanderwodarz.code.model.varible.VaribleBuilder Maven / Gradle / Ivy

There is a newer version: 1.4.5
Show newest version
package de.alexanderwodarz.code.model.varible;

import lombok.RequiredArgsConstructor;

@RequiredArgsConstructor
public class VaribleBuilder {

    private String key;
    private Object value;

    private final VaribleMap map;

    public VaribleBuilder setKey(String key) {
        this.key = key;
        return this;
    }

    public VaribleBuilder setValue(Object value) {
        this.value = value;
        return this;
    }

    public VaribleMap build() {
        Varible varible = new Varible();
        varible.setKey(key);
        varible.setValue(value);
        map.put(varible);
        return map;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy