Example #1
0
 @Override
 public int hashCode() {
   int result = (int) (idCategorieStoc ^ (idCategorieStoc >>> 32));
   result = 31 * result + (codCategorie != null ? codCategorie.hashCode() : 0);
   result = 31 * result + (numeCategorie != null ? numeCategorie.hashCode() : 0);
   result = 31 * result + (parent != null ? parent.hashCode() : 0);
   result = 31 * result + (children != null ? children.hashCode() : 0);
   return result;
 }
Example #2
0
  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (!(o instanceof CategorieStoc)) return false;

    CategorieStoc that = (CategorieStoc) o;

    if (idCategorieStoc != that.idCategorieStoc) return false;
    if (codCategorie != null ? !codCategorie.equals(that.codCategorie) : that.codCategorie != null)
      return false;
    if (numeCategorie != null
        ? !numeCategorie.equals(that.numeCategorie)
        : that.numeCategorie != null) return false;
    if (parent != null ? !parent.equals(that.parent) : that.parent != null) return false;
    return !(children != null ? !children.equals(that.children) : that.children != null);
  }