@Test void setCamera() { final CloseSessionOption option = builder .setCameraRef(cameraRef) .setCamera(null) .build(); Assertions.assertNotNull(option.getCameraRef()); Assertions.assertFalse(option.getCamera().isPresent()); final CloseSessionOption option1 = builder .setCameraRef(cameraRef) .setCamera(new CanonCamera()) .build(); Assertions.assertNotNull(option1.getCameraRef()); Assertions.assertTrue(option1.getCamera().isPresent()); Assertions.assertNotEquals(option, option1); Assertions.assertNotEquals(option.hashCode(), option1.hashCode()); }
public CloseSessionOptionBuilder setCamera(final CanonCamera camera) { this.camera = camera; return this; }
CloseSessionOptionBuilder { public CloseSessionOptionBuilder setCamera(final CanonCamera camera) { this.camera = camera; return this; } }
CloseSessionOptionBuilder { public CloseSessionOptionBuilder setCamera(final CanonCamera camera) { this.camera = camera; return this; }  }
CloseSessionOptionBuilder { public CloseSessionOptionBuilder setCamera(final CanonCamera camera) { this.camera = camera; return this; }  CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef); CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef); CloseSessionOptionBuilder setCamera(final CanonCamera camera); CloseSessionOption build(); }
CloseSessionOptionBuilder { public CloseSessionOptionBuilder setCamera(final CanonCamera camera) { this.camera = camera; return this; }  CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef); CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef); CloseSessionOptionBuilder setCamera(final CanonCamera camera); CloseSessionOption build();  }