/** * An {@code Object.equals(Object obj)} method override. */ @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof PolicyAssertion)) { return false; } final PolicyAssertion that = (PolicyAssertion) obj; boolean result = true; result = result && this.data.equals(that.data); result = result && this.parameters.equals(that.parameters); result = result && ((this.getNestedPolicy() == null) ? ((that.getNestedPolicy() == null) ? true : false) : this.getNestedPolicy().equals(that.getNestedPolicy())); return result; }