if (getMustache() != null) sb.append("Mustache: ").append(getMustache()).append(","); if (getEyesOpen() != null) sb.append("EyesOpen: ").append(getEyesOpen()).append(","); if (getMouthOpen() != null) sb.append("MouthOpen: ").append(getMouthOpen()).append(",");
@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; }
/** * Marshall the given parameter object. */ public void marshall(FaceDetail faceDetail, ProtocolMarshaller protocolMarshaller) { if (faceDetail == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(faceDetail.getBoundingBox(), BOUNDINGBOX_BINDING); protocolMarshaller.marshall(faceDetail.getAgeRange(), AGERANGE_BINDING); protocolMarshaller.marshall(faceDetail.getSmile(), SMILE_BINDING); protocolMarshaller.marshall(faceDetail.getEyeglasses(), EYEGLASSES_BINDING); protocolMarshaller.marshall(faceDetail.getSunglasses(), SUNGLASSES_BINDING); protocolMarshaller.marshall(faceDetail.getGender(), GENDER_BINDING); protocolMarshaller.marshall(faceDetail.getBeard(), BEARD_BINDING); protocolMarshaller.marshall(faceDetail.getMustache(), MUSTACHE_BINDING); protocolMarshaller.marshall(faceDetail.getEyesOpen(), EYESOPEN_BINDING); protocolMarshaller.marshall(faceDetail.getMouthOpen(), MOUTHOPEN_BINDING); protocolMarshaller.marshall(faceDetail.getEmotions(), EMOTIONS_BINDING); protocolMarshaller.marshall(faceDetail.getLandmarks(), LANDMARKS_BINDING); protocolMarshaller.marshall(faceDetail.getPose(), POSE_BINDING); protocolMarshaller.marshall(faceDetail.getQuality(), QUALITY_BINDING); protocolMarshaller.marshall(faceDetail.getConfidence(), CONFIDENCE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
if (other.getMustache() != null && other.getMustache().equals(this.getMustache()) == false) return false; if (other.getEyesOpen() == null ^ this.getEyesOpen() == null) return false; if (other.getEyesOpen() != null && other.getEyesOpen().equals(this.getEyesOpen()) == false) return false; if (other.getMouthOpen() == null ^ this.getMouthOpen() == null)
if (getMustache() != null) sb.append("Mustache: " + getMustache() + ","); if (getEyesOpen() != null) sb.append("EyesOpen: " + getEyesOpen() + ","); if (getMouthOpen() != null) sb.append("MouthOpen: " + getMouthOpen() + ",");
@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.getMustache() != null && other.getMustache().equals(this.getMustache()) == false) return false; if (other.getEyesOpen() == null ^ this.getEyesOpen() == null) return false; if (other.getEyesOpen() != null && other.getEyesOpen().equals(this.getEyesOpen()) == false) return false; if (other.getMouthOpen() == null ^ this.getMouthOpen() == null)
MustacheJsonMarshaller.getInstance().marshall(mustache, jsonWriter); if (faceDetail.getEyesOpen() != null) { EyeOpen eyesOpen = faceDetail.getEyesOpen(); jsonWriter.name("EyesOpen"); EyeOpenJsonMarshaller.getInstance().marshall(eyesOpen, jsonWriter);