@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus2xx() == null) ? 0 : getStatus2xx().hashCode()); hashCode = prime * hashCode + ((getStatus3xx() == null) ? 0 : getStatus3xx().hashCode()); hashCode = prime * hashCode + ((getStatus4xx() == null) ? 0 : getStatus4xx().hashCode()); hashCode = prime * hashCode + ((getStatus5xx() == null) ? 0 : getStatus5xx().hashCode()); return hashCode; }
/** * 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 (getStatus2xx() != null) sb.append("Status2xx: ").append(getStatus2xx()).append(","); if (getStatus3xx() != null) sb.append("Status3xx: ").append(getStatus3xx()).append(","); if (getStatus4xx() != null) sb.append("Status4xx: ").append(getStatus4xx()).append(","); if (getStatus5xx() != null) sb.append("Status5xx: ").append(getStatus5xx()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StatusCodes == false) return false; StatusCodes other = (StatusCodes) obj; if (other.getStatus2xx() == null ^ this.getStatus2xx() == null) return false; if (other.getStatus2xx() != null && other.getStatus2xx().equals(this.getStatus2xx()) == false) return false; if (other.getStatus3xx() == null ^ this.getStatus3xx() == null) return false; if (other.getStatus3xx() != null && other.getStatus3xx().equals(this.getStatus3xx()) == false) return false; if (other.getStatus4xx() == null ^ this.getStatus4xx() == null) return false; if (other.getStatus4xx() != null && other.getStatus4xx().equals(this.getStatus4xx()) == false) return false; if (other.getStatus5xx() == null ^ this.getStatus5xx() == null) return false; if (other.getStatus5xx() != null && other.getStatus5xx().equals(this.getStatus5xx()) == false) return false; return true; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStatus2xx() == null) ? 0 : getStatus2xx().hashCode()); hashCode = prime * hashCode + ((getStatus3xx() == null) ? 0 : getStatus3xx().hashCode()); hashCode = prime * hashCode + ((getStatus4xx() == null) ? 0 : getStatus4xx().hashCode()); hashCode = prime * hashCode + ((getStatus5xx() == null) ? 0 : getStatus5xx().hashCode()); return hashCode; }
/** * 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 (getStatus2xx() != null) sb.append("Status2xx: ").append(getStatus2xx()).append(","); if (getStatus3xx() != null) sb.append("Status3xx: ").append(getStatus3xx()).append(","); if (getStatus4xx() != null) sb.append("Status4xx: ").append(getStatus4xx()).append(","); if (getStatus5xx() != null) sb.append("Status5xx: ").append(getStatus5xx()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StatusCodes == false) return false; StatusCodes other = (StatusCodes) obj; if (other.getStatus2xx() == null ^ this.getStatus2xx() == null) return false; if (other.getStatus2xx() != null && other.getStatus2xx().equals(this.getStatus2xx()) == false) return false; if (other.getStatus3xx() == null ^ this.getStatus3xx() == null) return false; if (other.getStatus3xx() != null && other.getStatus3xx().equals(this.getStatus3xx()) == false) return false; if (other.getStatus4xx() == null ^ this.getStatus4xx() == null) return false; if (other.getStatus4xx() != null && other.getStatus4xx().equals(this.getStatus4xx()) == false) return false; if (other.getStatus5xx() == null ^ this.getStatus5xx() == null) return false; if (other.getStatus5xx() != null && other.getStatus5xx().equals(this.getStatus5xx()) == false) return false; return true; }