Classes related to java.util.Function and extensions like Predicate, Consumer and Supplier.
-
Morphing methods like
-
TriFunction#ignoreArg[1-4](…)morphs aTriFunctionto aQuadriFunction -
TriFunction#withArg[1-3](…)morphs aTriFunctionto aBiFunction.
-
-
Utilities for that in
-
Things like
memoize(to memoize the value of a supplier),closeable(to make a SupplierAutoCloseable) andignoreArg(to morph aSupplierto aFunctionthat ignores the argument) are provided.
-
Consistent
equalsandhashCode, for the utility functions that produce functional implementations. E.g. the above mentionedignoreArg*andwithArg*are not simply implemented with lambda’s, but also with equals and hashcode based on the source functional class implementation.
| Version | date | remarks |
|---|---|---|
1.17 |
2026-03 |
For the 'Throwing-' functional interfaces, there are now also overridden verison of the 'withArgN' and 'ignoreArgN' morphing methods, that remain 'Throwing-' functional interfaces, and throw the same exception as the original functional interface. |
1.12 |
2025-06-26 |
A.o, introduction of 'CloseableSupplier' and 'UnwrappableSupplier' interfaces, |
1.11 |
2024-05-11 |
|
1.10 |
2023-12 |
|
1.0 |
2020-11-30 |