@Override public int hashCode() { /* * Hashing of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.hash(completed, task, getErrorAsMap(), getResponseAsMap()); }
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != TaskResult.class) { return false; } TaskResult other = (TaskResult) obj; /* * Equality of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.equals(completed, other.completed) && Objects.equals(task, other.task) && Objects.equals(getErrorAsMap(), other.getErrorAsMap()) && Objects.equals(getResponseAsMap(), other.getResponseAsMap()); }
@Override public int hashCode() { /* * Hashing of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.hash(completed, task, getErrorAsMap(), getResponseAsMap()); }
@Override public int hashCode() { /* * Hashing of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.hash(completed, task, getErrorAsMap(), getResponseAsMap()); }
@Override public int hashCode() { /* * Hashing of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.hash(completed, task, getErrorAsMap(), getResponseAsMap()); }
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != TaskResult.class) { return false; } TaskResult other = (TaskResult) obj; /* * Equality of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.equals(completed, other.completed) && Objects.equals(task, other.task) && Objects.equals(getErrorAsMap(), other.getErrorAsMap()) && Objects.equals(getResponseAsMap(), other.getResponseAsMap()); }
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != TaskResult.class) { return false; } TaskResult other = (TaskResult) obj; /* * Equality of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.equals(completed, other.completed) && Objects.equals(task, other.task) && Objects.equals(getErrorAsMap(), other.getErrorAsMap()) && Objects.equals(getResponseAsMap(), other.getResponseAsMap()); }
@Override public boolean equals(Object obj) { if (obj == null || obj.getClass() != TaskResult.class) { return false; } TaskResult other = (TaskResult) obj; /* * Equality of error and result is done by converting them to a map first. Not efficient but ignores field order and spacing * differences so perfect for testing. */ return Objects.equals(completed, other.completed) && Objects.equals(task, other.task) && Objects.equals(getErrorAsMap(), other.getErrorAsMap()) && Objects.equals(getResponseAsMap(), other.getResponseAsMap()); }