Uses of Interface
me.saro.commons.function.ThrowablePredicate
-
Packages that use ThrowablePredicate Package Description me.saro.commons me.saro.commons.function -
-
Uses of ThrowablePredicate in me.saro.commons
Methods in me.saro.commons with parameters of type ThrowablePredicate Modifier and Type Method Description static java.util.function.Predicate<java.io.File>Files. attributesFilter(ThrowablePredicate<java.nio.file.attribute.BasicFileAttributes> filter)convert BasicFileAttributes to FileFilter
ex) // delete created before 24 hour file in /testpath
long before24hour = DateFormat.now().addHours(-24).getTimeInMillis();
Files.streamFiles("/testpath")
.filter(Files.attributesFilter(attr -> attr.creationTime().toMillis() < before24hour))
.forEach(File::delete); -
Uses of ThrowablePredicate in me.saro.commons.function
Methods in me.saro.commons.function with parameters of type ThrowablePredicate Modifier and Type Method Description static <T> java.util.function.Predicate<T>ThrowablePredicate. runtime(ThrowablePredicate<T> throwablePredicate)throws Exception lambda to throws RuntimeException lambda
-