/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLayers() != null) sb.append("Layers: ").append(getLayers()).append(","); if (getFailures() != null) sb.append("Failures: ").append(getFailures()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchCheckLayerAvailabilityResult == false) return false; BatchCheckLayerAvailabilityResult other = (BatchCheckLayerAvailabilityResult) obj; if (other.getLayers() == null ^ this.getLayers() == null) return false; if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == false) return false; if (other.getFailures() == null ^ this.getFailures() == null) return false; if (other.getFailures() != null && other.getFailures().equals(this.getFailures()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getLayers() != null) sb.append("Layers: ").append(getLayers()).append(","); if (getFailures() != null) sb.append("Failures: ").append(getFailures()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BatchCheckLayerAvailabilityResult == false) return false; BatchCheckLayerAvailabilityResult other = (BatchCheckLayerAvailabilityResult) obj; if (other.getLayers() == null ^ this.getLayers() == null) return false; if (other.getLayers() != null && other.getLayers().equals(this.getLayers()) == false) return false; if (other.getFailures() == null ^ this.getFailures() == null) return false; if (other.getFailures() != null && other.getFailures().equals(this.getFailures()) == false) return false; return true; }