Skip to content

Instantly share code, notes, and snippets.

@samiron
Last active July 22, 2020 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samiron/17c71dfa0ec145dc832831c80060eb42 to your computer and use it in GitHub Desktop.
Save samiron/17c71dfa0ec145dc832831c80060eb42 to your computer and use it in GitHub Desktop.
Function Relaying Using Java 8
validationChain = validateTeam()
.next(validateManagers())
.next(validatePlayers())
.next(validatePhysicians())
validationChain.apply(teamDTO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment