Mihxil's Functional Utils

Utilities related and like java.util.Function

License

License

GroupId

GroupId

org.meeuw.util
ArtifactId

ArtifactId

mihxil-functional
Last Version

Last Version

1.3
Release Date

Release Date

Type

Type

jar
Description

Description

Mihxil's Functional Utils
Utilities related and like java.util.Function

Download mihxil-functional

How to add to project

<!-- https://jarcasting.com/artifacts/org.meeuw.util/mihxil-functional/ -->
<dependency>
    <groupId>org.meeuw.util</groupId>
    <artifactId>mihxil-functional</artifactId>
    <version>1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.meeuw.util/mihxil-functional/
implementation 'org.meeuw.util:mihxil-functional:1.3'
// https://jarcasting.com/artifacts/org.meeuw.util/mihxil-functional/
implementation ("org.meeuw.util:mihxil-functional:1.3")
'org.meeuw.util:mihxil-functional:jar:1.3'
<dependency org="org.meeuw.util" name="mihxil-functional" rev="1.3">
  <artifact name="mihxil-functional" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.meeuw.util', module='mihxil-functional', version='1.3')
)
libraryDependencies += "org.meeuw.util" % "mihxil-functional" % "1.3"
[org.meeuw.util/mihxil-functional "1.3"]

Dependencies

test (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.7.0
org.assertj : assertj-core jar 3.18.1

Project Modules

There are no modules declared in this project.

java.util extensions

Build Status Maven Central codecov javadoc

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.

Versions

Version
1.3
1.2
1.1
1.0
0.3
0.2