io.neow3j.protocol.core.HexParameterNumber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core Show documentation
Show all versions of core Show documentation
neow3j: Java/Kotlin/Android Development Toolkit for the Neo Blockchain
package io.neow3j.protocol.core;
import com.fasterxml.jackson.annotation.JsonValue;
import io.neow3j.utils.Numeric;
import java.math.BigInteger;
/**
* Represents a parameter as a number.
* This class converts to string hexadecimal.
*/
public class HexParameterNumber implements HexParameter {
private BigInteger param;
public HexParameterNumber(BigInteger paramAsBigInteger) {
this.param = paramAsBigInteger;
}
@Override
@JsonValue
public String getHexValue() {
return Numeric.toHexStringNoPrefix(this.param);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy