@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoll() == null) ? 0 : getRoll().hashCode()); hashCode = prime * hashCode + ((getYaw() == null) ? 0 : getYaw().hashCode()); hashCode = prime * hashCode + ((getPitch() == null) ? 0 : getPitch().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 (getRoll() != null) sb.append("Roll: ").append(getRoll()).append(","); if (getYaw() != null) sb.append("Yaw: ").append(getYaw()).append(","); if (getPitch() != null) sb.append("Pitch: ").append(getPitch()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Pose == false) return false; Pose other = (Pose) obj; if (other.getRoll() == null ^ this.getRoll() == null) return false; if (other.getRoll() != null && other.getRoll().equals(this.getRoll()) == false) return false; if (other.getYaw() == null ^ this.getYaw() == null) return false; if (other.getYaw() != null && other.getYaw().equals(this.getYaw()) == false) return false; if (other.getPitch() == null ^ this.getPitch() == null) return false; if (other.getPitch() != null && other.getPitch().equals(this.getPitch()) == false) return false; return true; }
/** * Marshall the given parameter object. */ public void marshall(Pose pose, ProtocolMarshaller protocolMarshaller) { if (pose == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(pose.getRoll(), ROLL_BINDING); protocolMarshaller.marshall(pose.getYaw(), YAW_BINDING); protocolMarshaller.marshall(pose.getPitch(), PITCH_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoll() == null) ? 0 : getRoll().hashCode()); hashCode = prime * hashCode + ((getYaw() == null) ? 0 : getYaw().hashCode()); hashCode = prime * hashCode + ((getPitch() == null) ? 0 : getPitch().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 (getRoll() != null) sb.append("Roll: " + getRoll() + ","); if (getYaw() != null) sb.append("Yaw: " + getYaw() + ","); if (getPitch() != null) sb.append("Pitch: " + getPitch()); sb.append("}"); return sb.toString(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Pose == false) return false; Pose other = (Pose) obj; if (other.getRoll() == null ^ this.getRoll() == null) return false; if (other.getRoll() != null && other.getRoll().equals(this.getRoll()) == false) return false; if (other.getYaw() == null ^ this.getYaw() == null) return false; if (other.getYaw() != null && other.getYaw().equals(this.getYaw()) == false) return false; if (other.getPitch() == null ^ this.getPitch() == null) return false; if (other.getPitch() != null && other.getPitch().equals(this.getPitch()) == false) return false; return true; } }
public void marshall(Pose pose, AwsJsonWriter jsonWriter) throws Exception { jsonWriter.beginObject(); if (pose.getRoll() != null) { Float roll = pose.getRoll(); jsonWriter.name("Roll"); jsonWriter.value(roll); } if (pose.getYaw() != null) { Float yaw = pose.getYaw(); jsonWriter.name("Yaw"); jsonWriter.value(yaw); } if (pose.getPitch() != null) { Float pitch = pose.getPitch(); jsonWriter.name("Pitch"); jsonWriter.value(pitch); } jsonWriter.endObject(); }