@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; IncomeStatementQ other = (IncomeStatementQ) obj; if (ebit == null) { if (other.ebit != null) return false; } else if (!ebit.equals(other.ebit)) return false; if (ebitda == null) { if (other.ebitda != null) return false; } else if (!ebitda.equals(other.ebitda)) return false; if (gross == null) { if (other.gross != null) return false; } else if (!gross.equals(other.gross)) return false; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; if (netIncome == null) { if (other.netIncome != null) return false; } else if (!netIncome.equals(other.netIncome)) return false; if (netSales == null) { if (other.netSales != null) return false; } else if (!netSales.equals(other.netSales)) return false; if (preTaxIncome == null) { if (other.preTaxIncome != null) return false; } else if (!preTaxIncome.equals(other.preTaxIncome)) return false; if (waCapital == null) { if (other.waCapital != null) return false; } else if (!waCapital.equals(other.waCapital)) return false; return true; }
@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((ebit == null) ? 0 : ebit.hashCode()); result = prime * result + ((ebitda == null) ? 0 : ebitda.hashCode()); result = prime * result + ((gross == null) ? 0 : gross.hashCode()); result = prime * result + ((id == null) ? 0 : id.hashCode()); result = prime * result + ((netIncome == null) ? 0 : netIncome.hashCode()); result = prime * result + ((netSales == null) ? 0 : netSales.hashCode()); result = prime * result + ((preTaxIncome == null) ? 0 : preTaxIncome.hashCode()); result = prime * result + ((waCapital == null) ? 0 : waCapital.hashCode()); return result; }