SearchDuplicatesByList - ViiSE/papka GitHub Wiki
SearchDuplicatesByList<T> - search duplicates from list of files.
No constructors.
List<String> filesWithDuplicates = new ArrayList<String>() {{
add("/music/opus/opus111.mp3");
add("/music/opus/opus109.mp3");
add("/music/opus/opus111.mp3");
}};
Search<List<String>, List<String> search = new SearchDuplicatesByList<>();
List<String> files = search.answer(list);
files.forEach(System.out::println);
Output:
/music/opus/opus111.mp3
Search - implementable interface.