net.sf.javagimmicks.transform.AbstractBidiFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gimmicks Show documentation
Show all versions of gimmicks Show documentation
Utility classes, APIs and tools for Java
package net.sf.javagimmicks.transform;
/**
* A basic class for writing {@link BidiFunction}s - provides a default
* implementation of {@link #invert()}, so that the developer only needs to
* provide {@link #apply(Object)} and {@link #applyReverse(Object)}.
*/
public abstract class AbstractBidiFunction implements BidiFunction
{
protected AbstractBidiFunction()
{}
@Override
public BidiFunction invert()
{
return Functions.invert(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy