de.espirit.common.function
Interface UnaryFunction<R,P>


public interface UnaryFunction<R,P>

Simple interface to create an type safe instance of an object based on one parameter.

Since:
4.2.416
See Also:
Generator, BinaryFunction

Method Summary
 R invoke(P parameter)
          Generates an object of the specified type based on the given parameter.
 

Method Detail

invoke

R invoke(P parameter)
Generates an object of the specified type based on the given parameter. Each call to this method should create a new instance.

Parameters:
parameter - the parameter used to create the instance
Returns:
the generated object of the specified type
Since:
4.2.416


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480