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

software.crldev.elrondspringbootstarterreactive.api.model.AccountStorageValue Maven / Gradle / Ivy

Go to download

A SpringBoot Starter solution designed to ensure easy and efficient integration with the Elrond Network using a Reactive API layer.

The newest version!
package software.crldev.elrondspringbootstarterreactive.api.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * API response when querying for address storage value
 *
 * @author carlo_stanciu
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AccountStorageValue.AccountStorageValueBuilder.class)
public final class AccountStorageValue {
    @JsonProperty("value")
    private final String value;

    AccountStorageValue(final String value) {
        this.value = value;
    }


    @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
    public static class AccountStorageValueBuilder {
        private String value;

        AccountStorageValueBuilder() {
        }

        /**
         * @return {@code this}.
         */
        @JsonProperty("value")
        public AccountStorageValue.AccountStorageValueBuilder value(final String value) {
            this.value = value;
            return this;
        }

        public AccountStorageValue build() {
            return new AccountStorageValue(this.value);
        }

        @Override
        public String toString() {
            return "AccountStorageValue.AccountStorageValueBuilder(value=" + this.value + ")";
        }
    }

    public static AccountStorageValue.AccountStorageValueBuilder builder() {
        return new AccountStorageValue.AccountStorageValueBuilder();
    }

    public String getValue() {
        return this.value;
    }

    @Override
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof AccountStorageValue)) return false;
        final AccountStorageValue other = (AccountStorageValue) o;
        final Object this$value = this.getValue();
        final Object other$value = other.getValue();
        if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $value = this.getValue();
        result = result * PRIME + ($value == null ? 43 : $value.hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "AccountStorageValue(value=" + this.getValue() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy