Skip to content

Instantly share code, notes, and snippets.

@markito
Created July 1, 2020 21:32
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 markito/6cf0c421f3936ffb741ca61948666a98 to your computer and use it in GitHub Desktop.
Save markito/6cf0c421f3936ffb741ca61948666a98 to your computer and use it in GitHub Desktop.
@Bean
public Function<UserReview, UserReview> translateReview() {
return input -> {
final UserReview output = input;
output.setComment(translate().apply(input.getComment()));
return output;
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment