All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.javagimmicks.transform.AbstractBidiFunction Maven / Gradle / Ivy

There is a newer version: 0.99-alpha1
Show newest version
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