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

org.ergoplatform.appkit.ConstantsBuilder Maven / Gradle / Ivy

The newest version!
package org.ergoplatform.appkit;

/**
 * Used to build {@link Constants} instances which can be used in ErgoScript contracts.
 */
public class ConstantsBuilder {

    Constants _constants = new Constants();

    public ConstantsBuilder item(String name, Object value) {
        _constants.put(name, value);
        return this;
    }

    public Constants build() {
        return _constants;
    }

    public static ConstantsBuilder create() { return new ConstantsBuilder(); }

    public static Constants empty() { return create().build(); }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy