public final class FileUtils
extends java.lang.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,
java.util.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
java.util.Comparator<F> comparator)
F - the file type.fileArray - the array.predicate - the predicate.comparator - an optional comparator to sort the results.