@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; }
/** * <p> * Value representing the face rotation on the pitch axis. * </p> * * @param pitch * Value representing the face rotation on the pitch axis. * @return Returns a reference to this object so that method calls can be chained together. */ public Pose withPitch(Float pitch) { setPitch(pitch); return this; }
/** * <p> * Value representing the face rotation on the roll axis. * </p> * * @param roll * Value representing the face rotation on the roll axis. * @return Returns a reference to this object so that method calls can be chained together. */ public Pose withRoll(Float roll) { setRoll(roll); return this; }
public Pose unmarshall(JsonUnmarshallerContext context) throws Exception { Pose pose = new Pose(); if (context.testExpression("Roll", targetDepth)) { context.nextToken(); pose.setRoll(context.getUnmarshaller(Float.class).unmarshall(context)); pose.setYaw(context.getUnmarshaller(Float.class).unmarshall(context)); pose.setPitch(context.getUnmarshaller(Float.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBoundingBox() == null) ? 0 : getBoundingBox().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); hashCode = prime * hashCode + ((getLandmarks() == null) ? 0 : getLandmarks().hashCode()); hashCode = prime * hashCode + ((getPose() == null) ? 0 : getPose().hashCode()); hashCode = prime * hashCode + ((getQuality() == null) ? 0 : getQuality().hashCode()); return hashCode; }
if (other.getPose() == null ^ this.getPose() == null) return false; if (other.getPose() != null && other.getPose().equals(this.getPose()) == false) return false; if (other.getQuality() == null ^ this.getQuality() == null)
/** * <p> * Value representing the face rotation on the yaw axis. * </p> * * @param yaw * Value representing the face rotation on the yaw axis. * @return Returns a reference to this object so that method calls can be chained together. */ public Pose withYaw(Float yaw) { setYaw(yaw); return this; }
public Pose unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Pose pose = new Pose(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Roll")) { pose.setRoll(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Yaw")) { pose.setYaw(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Pitch")) { pose.setPitch(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return pose; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBoundingBox() == null) ? 0 : getBoundingBox().hashCode()); hashCode = prime * hashCode + ((getAgeRange() == null) ? 0 : getAgeRange().hashCode()); hashCode = prime * hashCode + ((getSmile() == null) ? 0 : getSmile().hashCode()); hashCode = prime * hashCode + ((getEyeglasses() == null) ? 0 : getEyeglasses().hashCode()); hashCode = prime * hashCode + ((getSunglasses() == null) ? 0 : getSunglasses().hashCode()); hashCode = prime * hashCode + ((getGender() == null) ? 0 : getGender().hashCode()); hashCode = prime * hashCode + ((getBeard() == null) ? 0 : getBeard().hashCode()); hashCode = prime * hashCode + ((getMustache() == null) ? 0 : getMustache().hashCode()); hashCode = prime * hashCode + ((getEyesOpen() == null) ? 0 : getEyesOpen().hashCode()); hashCode = prime * hashCode + ((getMouthOpen() == null) ? 0 : getMouthOpen().hashCode()); hashCode = prime * hashCode + ((getEmotions() == null) ? 0 : getEmotions().hashCode()); hashCode = prime * hashCode + ((getLandmarks() == null) ? 0 : getLandmarks().hashCode()); hashCode = prime * hashCode + ((getPose() == null) ? 0 : getPose().hashCode()); hashCode = prime * hashCode + ((getQuality() == null) ? 0 : getQuality().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); return hashCode; }
if (other.getPose() == null ^ this.getPose() == null) return false; if (other.getPose() != null && other.getPose().equals(this.getPose()) == false) return false; if (other.getQuality() == null ^ this.getQuality() == null)
@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; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBoundingBox() == null) ? 0 : getBoundingBox().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); hashCode = prime * hashCode + ((getLandmarks() == null) ? 0 : getLandmarks().hashCode()); hashCode = prime * hashCode + ((getPose() == null) ? 0 : getPose().hashCode()); hashCode = prime * hashCode + ((getQuality() == null) ? 0 : getQuality().hashCode()); return hashCode; }
if (other.getPose() == null ^ this.getPose() == null) return false; if (other.getPose() != null && other.getPose().equals(this.getPose()) == false) return false; if (other.getQuality() == null ^ this.getQuality() == null)
/** * 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 int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getBoundingBox() == null) ? 0 : getBoundingBox().hashCode()); hashCode = prime * hashCode + ((getAgeRange() == null) ? 0 : getAgeRange().hashCode()); hashCode = prime * hashCode + ((getSmile() == null) ? 0 : getSmile().hashCode()); hashCode = prime * hashCode + ((getEyeglasses() == null) ? 0 : getEyeglasses().hashCode()); hashCode = prime * hashCode + ((getSunglasses() == null) ? 0 : getSunglasses().hashCode()); hashCode = prime * hashCode + ((getGender() == null) ? 0 : getGender().hashCode()); hashCode = prime * hashCode + ((getBeard() == null) ? 0 : getBeard().hashCode()); hashCode = prime * hashCode + ((getMustache() == null) ? 0 : getMustache().hashCode()); hashCode = prime * hashCode + ((getEyesOpen() == null) ? 0 : getEyesOpen().hashCode()); hashCode = prime * hashCode + ((getMouthOpen() == null) ? 0 : getMouthOpen().hashCode()); hashCode = prime * hashCode + ((getEmotions() == null) ? 0 : getEmotions().hashCode()); hashCode = prime * hashCode + ((getLandmarks() == null) ? 0 : getLandmarks().hashCode()); hashCode = prime * hashCode + ((getPose() == null) ? 0 : getPose().hashCode()); hashCode = prime * hashCode + ((getQuality() == null) ? 0 : getQuality().hashCode()); hashCode = prime * hashCode + ((getConfidence() == null) ? 0 : getConfidence().hashCode()); return hashCode; }
if (other.getPose() == null ^ this.getPose() == null) return false; if (other.getPose() != null && other.getPose().equals(this.getPose()) == false) return false; if (other.getQuality() == null ^ this.getQuality() == null)
/** * 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; }
@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; } }
/** * 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(); }