@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject, secondaryClassNumber, secondaryElementNumber, secondaryObject); }
@Override public int hashCode() { int result = type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); return result; } }
return false; if (!type.equals(that.type)) { return false;
return false; if (!type.equals(that.type)) { return false;
return false; if (!type.equals(that.type)) { return false;
@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
@SuppressWarnings("RedundantIfStatement") @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ElementCheckFailure that = (ElementCheckFailure) o; if (primaryClassNumber != that.primaryClassNumber) { return false; } if (primaryElementNumber != that.primaryElementNumber) { return false; } if (!type.equals(that.type)) { return false; } if (primaryObject != that.primaryObject && // Some testing objects not reflexive !primaryObject.equals(that.primaryObject)) { return false; } return true; }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); result = 31 * result + secondaryClassNumber; result = 31 * result + secondaryElementNumber; result = 31 * result + secondaryObject.hashCode(); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); result = 31 * result + secondaryClassNumber; result = 31 * result + secondaryElementNumber; result = 31 * result + secondaryObject.hashCode(); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); result = 31 * result + secondaryClassNumber; result = 31 * result + secondaryElementNumber; result = 31 * result + secondaryObject.hashCode(); return result; } }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject); }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject, secondaryClassNumber, secondaryElementNumber, secondaryObject); }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject); }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject, secondaryClassNumber, secondaryElementNumber, secondaryObject); }
@Override public int hashCode() { int result = type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); return result; } }
@Override public String toString() { return format(type.getMessage(), primaryClassNumber, primaryElementNumber, primaryObject); }
@Override public int hashCode() { int result = type.hashCode(); result = 31 * result + primaryClassNumber; result = 31 * result + primaryElementNumber; result = 31 * result + primaryObject.hashCode(); return result; } }