public final class FileUtils extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
IS_POSIX |
Modifier and Type | Method and Description |
---|---|
static <F> F[] |
purgeUnwantedElements(F[] fileArray,
java.util.function.Predicate<F> predicate,
Comparator<F> comparator)
Remove entries from the array if the predicate returns true for an element.
|
public static <F> F[] purgeUnwantedElements(F[] fileArray, java.util.function.Predicate<F> predicate, @Nullable Comparator<F> comparator)
F
- the file type.fileArray
- the array.predicate
- the predicate.comparator
- an optional comparator to sort the results.