SearchUniqueByList - ViiSE/papka GitHub Wiki

SearchUniqueByList

SearchUniqueByList<T> - search unique from list of files.

Constructors

No constructors.

Example

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

Links

Search - implementable interface.

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