Interface ParametricPrivilegedAction<T,​P>

  • Type Parameters:
    T - the action result type
    P - the action parameter type
    All Superinterfaces:
    Function<P,​T>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface ParametricPrivilegedAction<T,​P>
    extends Function<P,​T>
    A privileged action which accepts a parameter.
    Author:
    David M. Lloyd
    • Method Detail

      • apply

        default T apply​(P p)
        Specified by:
        apply in interface Function<T,​P>
      • run

        T run​(P parameter)
        Perform the action.
        Parameters:
        parameter - the passed-in parameter
        Returns:
        the action result