Top Fields Constructors Methods
org.jabref.gui.externalfiles

public Class FileFilterUtils

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.nio.file.attribute.FileTime, java.time.LocalDateTime, .ZoneId, java.util.Comparator, .List, java.util.stream.Collectors, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
filterByDate(Path path, DateRange filter)

public static LocalDateTime
public boolean
public boolean
public boolean
public boolean
public static List<Path>
sortByDate(List<Path> files, ExternalFileSorter sortType)

Sorts a list of Path objects according to the last edited date the order depends on the specified sorter type.

public List<Path>
sortByDateAscending(List<Path> files)

Sorts a list of Path objects according to the last edited date of their corresponding files, from newest to oldest.

public List<Path>
sortByDateDescending(List<Path> files)

Sorts a list of Path objects according to the last edited date of their corresponding files, from oldest to newest.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

FileFilterUtilsback to summary
public FileFilterUtils()

Method Detail

filterByDateback to summary
public static boolean filterByDate(Path path, DateRange filter)
getFileTimeback to summary
public static LocalDateTime getFileTime(Path path)
isDuringLastDayback to summary
public boolean isDuringLastDay(LocalDateTime fileEditTime)
isDuringLastMonthback to summary
public boolean isDuringLastMonth(LocalDateTime fileEditTime)
isDuringLastWeekback to summary
public boolean isDuringLastWeek(LocalDateTime fileEditTime)
isDuringLastYearback to summary
public boolean isDuringLastYear(LocalDateTime fileEditTime)
sortByDateback to summary
public static List<Path> sortByDate(List<Path> files, ExternalFileSorter sortType)

Sorts a list of Path objects according to the last edited date the order depends on the specified sorter type.

sortByDateAscendingback to summary
public List<Path> sortByDateAscending(List<Path> files)

Sorts a list of Path objects according to the last edited date of their corresponding files, from newest to oldest.

sortByDateDescendingback to summary
public List<Path> sortByDateDescending(List<Path> files)

Sorts a list of Path objects according to the last edited date of their corresponding files, from oldest to newest.