package com.mycelium.wapi.wallet.coins;

public abstract class AbstractAsset implements AssetInfo {
    protected String name;
    protected String symbol;

    protected transient Value oneCoin;

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

    @Override
    public int hashCode() {
        return getId().hashCode();
    }
}
