public class DatePredicate extends Object implements FilePredicate
Modifier and Type | Class and Description |
---|---|
static class |
DatePredicate.Factory
Factory for creating instances.
|
static class |
DatePredicate.LastModifiedDateFactory
Factory for modification time predicate.
|
ALL_FACTORIES
Constructor and Description |
---|
DatePredicate(String filterName,
String value,
java.util.function.Function<FileInfo,Long> getter)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.function.Predicate<FileInfo> |
get()
Get the predicate function from the file predicate.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public DatePredicate(String filterName, String value, java.util.function.Function<FileInfo,Long> getter)
filterName
- the filter namevalue
- the string representation of the time span. The string should contain either
one date like "2020/03/01" to define an interval after a start date, or
two dates delimited by comma like "2000/01/01, 2020/09/01" to define an interval
between a start date and an end dategetter
- a getter function that returns the timestamp to compare againstpublic java.util.function.Predicate<FileInfo> get()
FilePredicate
get
in interface FilePredicate
Copyright © 2023. All Rights Reserved.