@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getData() == null) ? 0 : getData().hashCode()); hashCode = prime * hashCode + ((getCharset() == null) ? 0 : getCharset().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 (getData() != null) sb.append("Data: ").append(getData()).append(","); if (getCharset() != null) sb.append("Charset: ").append(getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; }
if (subject.getCharset() != null) { request.addParameter("Message.Subject.Charset", StringUtils.fromString(subject.getCharset())); if (text.getCharset() != null) { request.addParameter("Message.Body.Text.Charset", StringUtils.fromString(text.getCharset())); if (html.getCharset() != null) { request.addParameter("Message.Body.Html.Charset", StringUtils.fromString(html.getCharset()));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getData() == null) ? 0 : getData().hashCode()); hashCode = prime * hashCode + ((getCharset() == null) ? 0 : getCharset().hashCode()); return hashCode; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getData() != null) sb.append("Data: " + getData() + ","); if (getCharset() != null) sb.append("Charset: " + getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; } }
public void marshall(Content _content, Request<?> request, String _prefix) { String prefix; if (_content.getData() != null) { prefix = _prefix + "Data"; String data = _content.getData(); request.addParameter(prefix, StringUtils.fromString(data)); } if (_content.getCharset() != null) { prefix = _prefix + "Charset"; String charset = _content.getCharset(); request.addParameter(prefix, StringUtils.fromString(charset)); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getData() == null) ? 0 : getData().hashCode()); hashCode = prime * hashCode + ((getCharset() == null) ? 0 : getCharset().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 (getData() != null) sb.append("Data: ").append(getData()).append(","); if (getCharset() != null) sb.append("Charset: ").append(getCharset()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Content == false) return false; Content other = (Content) obj; if (other.getData() == null ^ this.getData() == null) return false; if (other.getData() != null && other.getData().equals(this.getData()) == false) return false; if (other.getCharset() == null ^ this.getCharset() == null) return false; if (other.getCharset() != null && other.getCharset().equals(this.getCharset()) == false) return false; return true; }
if (subject.getCharset() != null) { request.addParameter("Message.Subject.Charset", StringUtils.fromString(subject.getCharset())); if (text.getCharset() != null) { request.addParameter("Message.Body.Text.Charset", StringUtils.fromString(text.getCharset())); if (html.getCharset() != null) { request.addParameter("Message.Body.Html.Charset", StringUtils.fromString(html.getCharset()));