Code example for BigDecimal

Methods: equals

0
        ExpensesAndIncome that = (ExpensesAndIncome) o;
 
        if (idExpinc != that.idExpinc) return false;
        if (description != null ? !description.equals(that.description) : that.description != null) return false;
        if (expenses != null ? !expenses.equals(that.expenses) : that.expenses != null) return false;
        if (income != null ? !income.equals(that.income) : that.income != null) return false;
 
        return true; 
    } 
 
    @Override 
    public int hashCode() { 
        int result = idExpinc;
        result = 31 * result + (expenses != null ? expenses.hashCode() : 0);
        result = 31 * result + (income != null ? income.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        return result;
    } 
 
    private DailyBudget dailyBudgetByIdDaybudget;
Connect your IDE to all the code out there  Get Codota for Java