package org.mastercoin.rpc;

import com.google.bitcoin.core.Address;

import java.math.BigDecimal;

/**
 * Balance data for a specific Mastercoin CurrencyID in a single Bitcoin address
 *
 * A Java representation of the JSON entry returned by getallbalancesforid_MP
 */
public class MPBalanceEntry {
    private Address address;
    private BigDecimal balance;
    private BigDecimal reserved;

    public MPBalanceEntry(Address address, BigDecimal balance, BigDecimal reserved) {
        this.address = address;
        this.balance = balance;
        this.reserved = reserved;
    }

    public Address getAddress() {
        return address;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public BigDecimal getReserved() {
        return reserved;
    }
}

@@ -571,32 +571,442 @@
 eserved;%0A    %7D%0A%0A
+    @Override%0A    public boolean equals(Object o) %7B%0A        if (!(o instanceof MPBalanceEntry)) %7B%0A            return false;%0A        %7D%0A        MPBalanceEntry e = (MPBalanceEntry) o;%0A        if (    (this.address == e.address) &&%0A                (this.balance == e.balance) &&%0A                (this.reserved == e.reserved) ) %7B%0A            return true;%0A        %7D else %7B%0A            return false;%0A        %7D%0A    %7D%0A%0A
     public Addre

Implement equals for MPBalanceEntry