SearchByContains - ViiSE/papka GitHub Wiki
SearchByContains<T> - search by contains (like contains() in java.lang.String).
public SearchByContains(Search<T, String> search)
Search<T, String> find - search by files.
List<String> rootFiles = new ArrayList<>();
rootFiles.add("root1.png");
rootFiles.add("roAot2.pdf");
rootFiles.add("roAot3.txt");
rootFiles.add("root4.pdf");
rootFiles.add("root5.txt");
Folder<String> root = new FolderPure<>(
new NameFolderRoot(),
rootFiles);
Search<List<String>, String> search = new SearchByContains<>(
new SearchFilesByRegex(root, false));
List<String> files = search.answer("oAo");
files.forEach(System.out::println);
Output:
roAot2.pdf
roAot3.txt
Search - implementable interface.