Skip to content

Instantly share code, notes, and snippets.

@vijayakumar-psg587
Created January 17, 2019 16:30
Show Gist options
  • Save vijayakumar-psg587/4da087474d569d7c6c0089bd43d9ad5c to your computer and use it in GitHub Desktop.
Save vijayakumar-psg587/4da087474d569d7c6c0089bd43d9ad5c to your computer and use it in GitHub Desktop.
CustomFileListCombiner
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