- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
/******************************************************************************************************************* * * Creates a {@link PresentationModel} for a {@link Customer} injecting a {@link Selectable} role which fires a * {@link CustomerSelectedEvent} on selection. * * @param customer the {@code Customer} * @return the {@code PresentationModel} * ******************************************************************************************************************/ @Nonnull @VisibleForTesting PresentationModel createPresentationModelFor (final @Nonnull Customer customer) { final Selectable publishEventOnSelection = () -> messageBus.publish(new CustomerSelectedEvent(customer)); return customer.as(Presentable).createPresentationModel(publishEventOnSelection); } }