@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AgeRange == false) return false; AgeRange other = (AgeRange) obj; if (other.getLow() == null ^ this.getLow() == null) return false; if (other.getLow() != null && other.getLow().equals(this.getLow()) == false) return false; if (other.getHigh() == null ^ this.getHigh() == null) return false; if (other.getHigh() != null && other.getHigh().equals(this.getHigh()) == 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 (getLow() != null) sb.append("Low: ").append(getLow()).append(","); if (getHigh() != null) sb.append("High: ").append(getHigh()); sb.append("}"); return sb.toString(); }
/** * Marshall the given parameter object. */ public void marshall(AgeRange ageRange, ProtocolMarshaller protocolMarshaller) { if (ageRange == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(ageRange.getLow(), LOW_BINDING); protocolMarshaller.marshall(ageRange.getHigh(), HIGH_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
/** * 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 (getLow() != null) sb.append("Low: " + getLow() + ","); if (getHigh() != null) sb.append("High: " + getHigh()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AgeRange == false) return false; AgeRange other = (AgeRange) obj; if (other.getLow() == null ^ this.getLow() == null) return false; if (other.getLow() != null && other.getLow().equals(this.getLow()) == false) return false; if (other.getHigh() == null ^ this.getHigh() == null) return false; if (other.getHigh() != null && other.getHigh().equals(this.getHigh()) == false) return false; return true; } }
public void marshall(AgeRange ageRange, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (ageRange.getLow() != null) { Integer low = ageRange.getLow(); jsonWriter.name("Low"); jsonWriter.value(low); } if (ageRange.getHigh() != null) { Integer high = ageRange.getHigh(); jsonWriter.name("High"); jsonWriter.value(high); } jsonWriter.endObject(); }