@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextMarker() == null) ? 0 : getNextMarker().hashCode()); hashCode = prime * hashCode + ((getByteMatchSets() == null) ? 0 : getByteMatchSets().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 (getNextMarker() != null) sb.append("NextMarker: ").append(getNextMarker()).append(","); if (getByteMatchSets() != null) sb.append("ByteMatchSets: ").append(getByteMatchSets()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListByteMatchSetsResult == false) return false; ListByteMatchSetsResult other = (ListByteMatchSetsResult) obj; if (other.getNextMarker() == null ^ this.getNextMarker() == null) return false; if (other.getNextMarker() != null && other.getNextMarker().equals(this.getNextMarker()) == false) return false; if (other.getByteMatchSets() == null ^ this.getByteMatchSets() == null) return false; if (other.getByteMatchSets() != null && other.getByteMatchSets().equals(this.getByteMatchSets()) == false) return false; return true; }