Interface UnaryFunction<R,P>

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

@Deprecated(since="5.2.231004") public interface UnaryFunction<R,P>
Deprecated.
since 5.2.231004 - Use Function instead
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)
    Deprecated.
    Generates an object of the specified type based on the given parameter.
  • Method Details

    • invoke

      R invoke(P parameter)
      Deprecated.
      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