Skip to content

Instantly share code, notes, and snippets.

@LukaJCB
Created July 31, 2016 15:10
Show Gist options
  • Save LukaJCB/07d5b46b642bca626595447cc1d4ca80 to your computer and use it in GitHub Desktop.
Save LukaJCB/07d5b46b642bca626595447cc1d4ca80 to your computer and use it in GitHub Desktop.
Optional<String> firm = personOption
.flatMap(Person::getResidence)
.flatMap(Residence::getAddress)
.map(Address::getConstructionFirm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment