Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/morgwai/functional-interfaces

Collection of Java functional interfaces
https://github.com/morgwai/functional-interfaces

Last synced: about 1 month ago
JSON representation

Collection of Java functional interfaces

Awesome Lists containing this project

README

        

# Functional Interfaces

Collection of Java functional interfaces.

Copyright 2024 Piotr Morgwai Kotarbinski, Licensed under the Apache License, Version 2.0



**latest release: [1.0](https://search.maven.org/artifact/pl.morgwai.base/functional-interfaces/1.0/jar)**
([javadoc](https://javadoc.io/doc/pl.morgwai.base/functional-interfaces/1.0))

## MAIN USER CLASSES

### [ThrowingComputation](https://javadoc.io/doc/pl.morgwai.base/functional-interfaces/latest/pl/morgwai/base/function/ThrowingComputation.html)
Similar to `Callable` but can throw inferable `Exception` types. This allows to precisely declare/infer types of `Exceptions` thrown by lambda expressions and avoid boilerplate try-catch-rethrowOrIgnore blocks.

### [ThrowingTask](https://javadoc.io/doc/pl.morgwai.base/functional-interfaces/latest/pl/morgwai/base/function/ThrowingTask.html)
Similar to `ThrowingComputation` but for void-returning tasks.