Created
January 17, 2019 16:30
-
-
Save vijayakumar-psg587/4da087474d569d7c6c0089bd43d9ad5c to your computer and use it in GitHub Desktop.
CustomFileListCombiner
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
public class CustomFileListCombiner implements BinaryOperator<List<FileReadDTO>> { | |
@Override | |
public List<FileReadDTO> apply(List<FileReadDTO> t, List<FileReadDTO> u) { | |
List<FileReadDTO> newList = new ArrayList<>(); | |
newList.addAll(t); | |
newList.addAll(u); | |
return newList; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment