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

ro.isdc.wro.util.Function Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package ro.isdc.wro.util;

/**
 * Determines an output value based on an input value. Inspired from Guava (simulates functional programming style), the
 * only difference is that the function can throw an {@link Exception}.
 * 
 * @author Alex Objelean
 * @since 1.4.4
 * @created 12 Jan 2012
 */
public interface Function {
  /**
   * Returns the result of applying this function to {@code input}. This method is generally
   * expected, but not absolutely required, to have the following properties:
   *
   * 
    *
  • Its execution does not cause any observable side effects. *
* * @throws NullPointerException if {@code input} is null and this function does not accept null * arguments * @throws Exception if an exception occurred during applying the function. */ T apply(F input) throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy