cuzfrog / unchecked

Functionally uncheck exceptions at compile time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badge Maven Central

Unchecked

Functionally uncheck exceptions at compile time.

Example:

import static com.github.cuzfrog.function.Functionally.uncheckedF;

Files.list(Paths.get("dir")).map(uncheckedF(Files::readAllBytes)).map(String::new)...

In case of exception, IOException will be thrown without RuntimeException wrapper.

Implemented functions:

  • unchecked - Consumer, Supplier, BiConsumer
  • uncheckedF - Function, BiFunction
  • uncheckedP - Predicate

About

Functionally uncheck exceptions at compile time.

License:MIT License


Languages

Language:Java 100.0%