Interface ContextAction.Function<T extends PsyObject>

Type Parameters:
T - the type of the input to the function.
Enclosing interface:
ContextAction
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 static interface ContextAction.Function<T extends PsyObject>
Represents a function that accepts one argument and produces a result.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T o)
    Applies this function to the given argument.
  • Method Details

    • apply

      PsyObject apply(T o) throws PsyErrorException
      Applies this function to the given argument.
      Parameters:
      o - the function argument.
      Returns:
      the function result.
      Throws:
      PsyErrorException - when an error occurs during operation.