SearchDuplicatesByList - ViiSE/papka GitHub Wiki

SearchDuplicatesByList

SearchDuplicatesByList<T> - search duplicates from list of files.

Constructors

No constructors.

Example

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

Links

Search - implementable interface.

⚠️ **GitHub.com Fallback** ⚠️