Skip to content

mihxil/utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.