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

io.api.etherscan.model.Uncle Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package io.api.etherscan.model;

import java.math.BigInteger;

/**
 * ! NO DESCRIPTION !
 *
 * @author GoodforGod
 * @since 30.10.2018
 */
public class Uncle {

    private String miner;
    private BigInteger blockreward;
    private int unclePosition;

    //
    public String getMiner() {
        return miner;
    }

    public BigInteger getBlockreward() {
        return blockreward;
    }

    public int getUnclePosition() {
        return unclePosition;
    }
    //

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Uncle uncle = (Uncle) o;

        if (unclePosition != uncle.unclePosition) return false;
        if (miner != null ? !miner.equals(uncle.miner) : uncle.miner != null) return false;
        return blockreward != null ? blockreward.equals(uncle.blockreward) : uncle.blockreward == null;
    }

    @Override
    public int hashCode() {
        int result = miner != null ? miner.hashCode() : 0;
        result = 31 * result + (blockreward != null ? blockreward.hashCode() : 0);
        result = 31 * result + unclePosition;
        return result;
    }

    @Override
    public String toString() {
        return "Uncle{" +
                "miner='" + miner + '\'' +
                ", blockreward=" + blockreward +
                ", unclePosition=" + unclePosition +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy