FilterFilesRaw - ViiSE/papka GitHub Wiki
FilterFilesRaw - filter by full filename.
public FilterFilesRaw(Find<List<String>, List<String>> find, List<String> rawFiles)
Find<List<String>, List<String>> find - find by files;
List<String> rawFiles - list of full filename files.
List<String> rawFiles = new ArrayList<>();
rawFiles.add("/root1.txt");
rawFiles.add("/root2.txt");
rawFiles.add("/root2.txt");
rawFiles.add("/root3.txt");
rawFiles.add("/folder1/fl1.txt");
rawFiles.add("/folder1/fl1.txt");
rawFiles.add("/folder1/fl2.txt");
Filter<List<String>> filter = new FilterFilesRaw(
new FindUniqueByList<>(),
rawFiles);
List<String> files = filter.apply();
files.forEach(System.out::println)
Output:
/root1.txt
/root3.txt
/folder1/fl2.txt
Filter - implementable interface.
Find - constructor argument.