Interface EnvironmentPropertyRunFunction<T>

Type Parameters:
T - the type of value the property carries
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 EnvironmentPropertyRunFunction<T>
Functional interface for defining the behaviour of a functional environment property.
  • Method Summary

    Modifier and Type
    Method
    Description
    run(EnvironmentContext context, T propertyValue)
    Runs the property's behaviour.
  • Method Details

    • run

      T run(EnvironmentContext context, T propertyValue)
      Runs the property's behaviour.
      Parameters:
      context - the context the property can use in its behaviour
      propertyValue - the property's currently stored value
      Returns:
      the value the property should store after the behaviour has run