Skip to content

Instantly share code, notes, and snippets.

@vbmendes
Last active October 31, 2019 15:00
Show Gist options
  • Save vbmendes/e865f387500f575a0788c084ac2fccfc to your computer and use it in GitHub Desktop.
Save vbmendes/e865f387500f575a0788c084ac2fccfc to your computer and use it in GitHub Desktop.
return Stream.of(this.getStringA(), this.getStringB())
.filter(Objects::nonNull)
.collect(Collectors.joining(" - "));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment