Skip to content

Instantly share code, notes, and snippets.

@odrotbohm
Created August 9, 2013 12:06
Show Gist options
  • Save odrotbohm/6193121 to your computer and use it in GitHub Desktop.
Save odrotbohm/6193121 to your computer and use it in GitHub Desktop.
Optional sample
public Location whereIs( String employeeName ){
employeeDAO.findProjectFor(employeeName)
.map( p -> ProjectDAO.findCustomerFor( p ) )
.map( c -> CustomerDAO.findLocationFor( c ) )
.orElse( HomeBase.Location );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment