Skip to content

Commit c955815

Browse files
committed
Updated README
1 parent c628e8b commit c955815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
The `throwing-functions` library provides copies of the functional interfaces in [java.util.functions](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/util/function/package-summary.html) that allow their functional interface methods to throw checked exceptions.
99

10-
Each of these interfaces also contains static methods `unchecked` and `checked` to convert them to and from their matching equivalents in `java.util.functions`. For example, to delete all files in a directory that match a filter, you can use [TheckedConsumer.unchecked](https://robtimus.github.io/throwing-functions/apidocs/com.github.robtimus.function.throwing/com/github/robtimus/function/throwing/ThrowingConsumer.html):
10+
Each of these interfaces also contains static methods `unchecked` and `checked` to convert them to and from their matching equivalents in `java.util.functions`. For example, to delete all files in a directory that match a filter, you can use [TheckedConsumer.unchecked](https://robtimus.github.io/throwing-functions/apidocs/com.github.robtimus.function.throwing/com/github/robtimus/function/throwing/ThrowingConsumer.html#unchecked\(com.github.robtimus.function.throwing.ThrowingConsumer\)):
1111

1212
```java
1313
try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, filter)) {

0 commit comments

Comments
 (0)