mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-06-02 12:41:32 +00:00
15 lines
403 B
Java
15 lines
403 B
Java
|
package io.github.applecommander.filestreamer;
|
||
|
|
||
|
import java.util.function.Predicate;
|
||
|
|
||
|
public enum TypeOfFile {
|
||
|
FILE(tuple -> !tuple.fileEntry.isDirectory()),
|
||
|
DIRECTORY(tuple -> tuple.fileEntry.isDirectory()),
|
||
|
BOTH(tuple -> true);
|
||
|
|
||
|
public final Predicate<FileTuple> predicate;
|
||
|
|
||
|
private TypeOfFile(Predicate<FileTuple> predicate) {
|
||
|
this.predicate = predicate;
|
||
|
}
|
||
|
}
|