ro.isdc.wro.util
Interface Function<F,T>
public interface Function<F,T>
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 Exception
.
- Since:
- 1.4.4
- Author:
- Alex Objelean
Method Summary |
T |
apply(F input)
Returns the result of applying this function to input . |
apply
T apply(F input)
throws Exception
- Returns the result of applying this function to
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 input
is null and this function does not accept null
arguments
Exception
- if an exception occurred during applying the function.
Copyright © 2008-2013. All Rights Reserved.