@Override public int hashCode() { return new HashCodeBuilder() .append(getFrontImageType()) .append(getBackImageType()) .append(getFrontImageColorFormat()) .append(getBackImageColorFormat()) .append(getCodelineFormat()) .append(getImageSource()) .append(getFrontImageFile()) .append(getBackImageFile()) .toHashCode(); }
@Override public String toString() { return new ToStringBuilder(this) .append("frontImageType", getFrontImageType()) .append("backImageType", getBackImageType()) .append("frontImageColorFormat", getFrontImageColorFormat()) .append("backImageColorFormat", getBackImageColorFormat()) .append("codelineFormat", getCodelineFormat()) .append("imageSource", getImageSource()) .append("frontImageFile", getFrontImageFile()) .append("backImageFile", getBackImageFile()) .toString(); } }
@Override public boolean equals(Object obj) { if (obj instanceof ImageRequest3) { ImageRequest3 imageRequest3 = (ImageRequest3) obj; return new EqualsBuilder() .append(getFrontImageType(), imageRequest3.getFrontImageType()) .append(getBackImageType(), imageRequest3.getBackImageType()) .append(getFrontImageColorFormat(), imageRequest3.getFrontImageColorFormat()) .append(getBackImageColorFormat(), imageRequest3.getBackImageColorFormat()) .append(getCodelineFormat(), imageRequest3.getCodelineFormat()) .append(getImageSource(), imageRequest3.getImageSource()) .append(getFrontImageFile(), imageRequest3.getFrontImageFile()) .append(getBackImageFile(), imageRequest3.getBackImageFile()) .isEquals(); } return false; }
this.backImageColorFormat.set(backImageColorFormat.get()); Optional<CodelineFormat> codelineFormat = copy.getCodelineFormat(); if (codelineFormat.isPresent()) { this.codelineFormat.set(codelineFormat.get());