/** * 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 (getSourceImageFace() != null) sb.append("SourceImageFace: ").append(getSourceImageFace()).append(","); if (getFaceMatches() != null) sb.append("FaceMatches: ").append(getFaceMatches()).append(","); if (getUnmatchedFaces() != null) sb.append("UnmatchedFaces: ").append(getUnmatchedFaces()).append(","); if (getSourceImageOrientationCorrection() != null) sb.append("SourceImageOrientationCorrection: ").append(getSourceImageOrientationCorrection()).append(","); if (getTargetImageOrientationCorrection() != null) sb.append("TargetImageOrientationCorrection: ").append(getTargetImageOrientationCorrection()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceImageFace() == null) ? 0 : getSourceImageFace().hashCode()); hashCode = prime * hashCode + ((getFaceMatches() == null) ? 0 : getFaceMatches().hashCode()); hashCode = prime * hashCode + ((getUnmatchedFaces() == null) ? 0 : getUnmatchedFaces().hashCode()); hashCode = prime * hashCode + ((getSourceImageOrientationCorrection() == null) ? 0 : getSourceImageOrientationCorrection().hashCode()); hashCode = prime * hashCode + ((getTargetImageOrientationCorrection() == null) ? 0 : getTargetImageOrientationCorrection().hashCode()); return hashCode; }
return false; CompareFacesResult other = (CompareFacesResult) obj; if (other.getSourceImageFace() == null ^ this.getSourceImageFace() == null) return false; if (other.getSourceImageFace() != null && other.getSourceImageFace().equals(this.getSourceImageFace()) == false) return false; if (other.getFaceMatches() == null ^ this.getFaceMatches() == null)
/** * 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 (getSourceImageFace() != null) sb.append("SourceImageFace: " + getSourceImageFace() + ","); if (getFaceMatches() != null) sb.append("FaceMatches: " + getFaceMatches() + ","); if (getUnmatchedFaces() != null) sb.append("UnmatchedFaces: " + getUnmatchedFaces() + ","); if (getSourceImageOrientationCorrection() != null) sb.append("SourceImageOrientationCorrection: " + getSourceImageOrientationCorrection() + ","); if (getTargetImageOrientationCorrection() != null) sb.append("TargetImageOrientationCorrection: " + getTargetImageOrientationCorrection()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSourceImageFace() == null) ? 0 : getSourceImageFace().hashCode()); hashCode = prime * hashCode + ((getFaceMatches() == null) ? 0 : getFaceMatches().hashCode()); hashCode = prime * hashCode + ((getUnmatchedFaces() == null) ? 0 : getUnmatchedFaces().hashCode()); hashCode = prime * hashCode + ((getSourceImageOrientationCorrection() == null) ? 0 : getSourceImageOrientationCorrection().hashCode()); hashCode = prime * hashCode + ((getTargetImageOrientationCorrection() == null) ? 0 : getTargetImageOrientationCorrection().hashCode()); return hashCode; }
CompareFacesResult other = (CompareFacesResult) obj; if (other.getSourceImageFace() == null ^ this.getSourceImageFace() == null) return false; if (other.getSourceImageFace() != null && other.getSourceImageFace().equals(this.getSourceImageFace()) == false) return false; if (other.getFaceMatches() == null ^ this.getFaceMatches() == null)