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

com.casper.sdk.model.deploy.transform.AddUInt128 Maven / Gradle / Ivy

Go to download

SDK to streamline the 3rd party Java client integration processes. Such 3rd parties include exchanges & app developers.

The newest version!
package com.casper.sdk.model.deploy.transform;

import java.math.BigInteger;

import com.casper.sdk.annotation.ExcludeFromJacocoGeneratedReport;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * An implmentation of Transform that Adds the given `u128`
 * 
 * @see Transform
 * 
 * @author Alexandre Carvalho
 * @author Andre Bertolace
 * @since 0.0.1
 */
@Getter
@Setter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonTypeName("AddUInt128")
public class AddUInt128 implements Transform {

    /**
     * u128
     */
    @JsonIgnore
    private BigInteger u128;

    /**
     * getter for u128 json serialization
     *
     * @return cost as expected for json serialization
     */
    @JsonProperty("AddUInt128")
    @ExcludeFromJacocoGeneratedReport
    protected String getJsonU128() {
        return this.u128.toString(10);
    }

    /**
     * setter for u128 from json deserialized value
     *
     * @param value the deserialized value
     */
    @JsonProperty("AddUInt128")
    @ExcludeFromJacocoGeneratedReport
    protected void setJsonU128(String value) {
        this.u128 = new BigInteger(value, 10);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy