src/main/java/seedu/address/model/modelFinance/Finance.java
public boolean weakEquals(ModelObject otherFinance) {
        if (otherFinance == this) {
            return true;
        }

        if (!(otherFinance instanceof Finance)) {
            return false;
        }
        Finance otherFinanceCast = (Finance) otherFinance;
        return otherFinanceCast != null
                && otherFinanceCast.getName().equals(getName())
                && otherFinanceCast.getAmount().equals(getAmount());
    }
/**
     * Returns true if both finances of the same name have at least one other identity field that is
     * the same. This defines a weaker notion of equality between two finances.
     *
     * @param otherFinance other Finance
     * @return true if both finances same name have at least one other same identity field,
     * false otherwise.
     */
Returns true if both finances of the same name have at least one other identity field that is
the same. This defines a weaker notion of equality between two finances.

@param otherFinance other Finance
@return true if both finances same name have at least one other same identity field,
false otherwise.
Returns true if both finances of the same name have at least one other identity field that is the same . This defines a weaker notion of equality between two finances . @param otherFinance other Finance @return true if both finances same name have at least one other same identity field false otherwise .
public boolean weakEquals(ModelObject otherFinance) {
        if (otherFinance == this) {
            return true;
        }
        if (!(otherFinance instanceof Finance)) {
            return false;
        }
        Finance otherFinanceCast = (Finance) otherFinance;
        return otherFinanceCast != null
                && otherFinanceCast.getName().equals(getName())
                && otherFinanceCast.getAmount().equals(getAmount());
    }
public boolean weakEquals ( ModelObject otherFinance ) { if ( otherFinance == this ) { return true ; } if ( ! ( otherFinance instanceof Finance ) ) { return false ; } Finance otherFinanceCast = ( Finance ) otherFinance ; return otherFinanceCast != null && otherFinanceCast . getName ( ) . equals ( getName ( ) ) && otherFinanceCast . getAmount ( ) . equals ( getAmount ( ) ) ; }
Returns true if both finances of the same name have at least one other identity field that is
 the same.
Returns true if both finances of the same name have at least one other identity field that is the same .