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