Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 2.06 KB

README.adoc

File metadata and controls

24 lines (16 loc) · 2.06 KB

java.util extensions

Build Status Maven Central codecov javadoc snapshots

Functional extensions

Classes related to java.util.Function and extensions like Predicate, Consumer and Supplier.

  • TriFunction, QuadriFunction

  • TriConsumer

  • TriPredicate

  • Morphing methods like

    • TriFunction#ignoreArg[1-4](…​) morphs a TriFunction to a QuadriFunction

    • TriFunction#withArg[1-3](…​) morphs a TriFunction to a BiFunction.

  • Utilities for that in Functions, Consumers, Predicates

  • Consistent equals and hashCode, for the utility functions that produce functional implementations. E.g. the above mentioned ignoreArg* and withArg* are not simply implemented with lambda’s, but also with equals and hashcode based on the source functional class implementation.