Created
July 1, 2020 21:32
-
-
Save markito/6cf0c421f3936ffb741ca61948666a98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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