@Test void builderIsReusable() { final ShootOption shootOption = builder.build(); final ShootOption shootOption2 = builder.build(); Assertions.assertNotNull(shootOption); Assertions.assertNotNull(shootOption2); Assertions.assertNotSame(shootOption, shootOption2); Assertions.assertEquals(shootOption, shootOption2); Assertions.assertEquals(shootOption.hashCode(), shootOption2.hashCode()); }
public ShootOption build() { validate(); return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename); }
ShootOptionBuilder { public ShootOption build() { validate(); return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename); } }
ShootOptionBuilder { public ShootOption build() { validate(); return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename); }  }
ShootOptionBuilder { public ShootOption build() { validate(); return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename); }  ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount); ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState); ShootOptionBuilder setShootWithV0(final boolean shootWithV0); ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF); ShootOptionBuilder setShootWithAF(final boolean shootWithAF); ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo); ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent); ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis); ShootOptionBuilder setFetchEvents(final boolean fetchEvents); ShootOptionBuilder setFolderDestination(final File folderDestination); ShootOptionBuilder setFilename(final String filename); ShootOption build(); }
ShootOptionBuilder { public ShootOption build() { validate(); return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename); }  ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount); ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState); ShootOptionBuilder setShootWithV0(final boolean shootWithV0); ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF); ShootOptionBuilder setShootWithAF(final boolean shootWithAF); ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo); ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent); ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis); ShootOptionBuilder setFetchEvents(final boolean fetchEvents); ShootOptionBuilder setFolderDestination(final File folderDestination); ShootOptionBuilder setFilename(final String filename); ShootOption build();  }