Interface UnaryFunction<R,P>

Type Parameters:
P - Parameter type.
R - Result type.

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:
  • Method Summary

    Modifier and Type
    Method
    Description
    invoke(P parameter)
    Generates an object of the specified type based on the given parameter.
  • Method Details

    • 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