private ImageRequest3 createImageRequest(Pointer p) { return new ImageRequest3(new ImageRequest3(p)); }
@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(); } }
public ImageRequest3(Pointer p) { this(); assignBuffer(p); }
@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 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; }
@Test public final void test() { ImageRequest3 expected = new ImageRequest3(buildImageRequest3().getPointer()); ImageRequest3 actual = new ImageRequest3(expected); System.out.println(actual); assertEquals(expected, actual); }
protected void set(ImageRequest3 copy) { Optional<ImageFormat> frontImageType = copy.getFrontImageType(); if (frontImageType.isPresent()) { this.frontImageType.set(frontImageType.get()); Optional<ImageFormat> backImageType = copy.getBackImageType(); if (backImageType.isPresent()) { this.backImageType.set(backImageType.get()); Optional<ImageColorFormat> frontImageColorFormat = copy.getFrontImageColorFormat(); if (frontImageColorFormat.isPresent()) { this.frontImageColorFormat.set(frontImageColorFormat.get()); Optional<ImageColorFormat> backImageColorFormat = copy.getBackImageColorFormat(); if (backImageColorFormat.isPresent()) { this.backImageColorFormat.set(backImageColorFormat.get()); Optional<CodelineFormat> codelineFormat = copy.getCodelineFormat(); if (codelineFormat.isPresent()) { this.codelineFormat.set(codelineFormat.get()); imageSource.set(copy.getImageSource()); Optional<String> frontImageFile = copy.getFrontImageFile(); if (frontImageFile.isPresent()) { this.frontImageFile.set(frontImageFile.get()); Optional<String> backImageFile = copy.getBackImageFile(); if (backImageFile.isPresent()) { this.backImageFile.set(backImageFile.get());