org.ergoplatform.appkit.ConstantsBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ergo-appkit_2.11 Show documentation
Show all versions of ergo-appkit_2.11 Show documentation
A Library for Polyglot Development of Ergo Applications
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