Interface AgentPropertySetterFunction<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 AgentPropertySetterFunction<T>
Functional interface for defining the setter logic of a functional agent property.
  • Method Summary

    Modifier and Type
    Method
    Description
    set(AgentContext context, T currentPropertyValue, T newPropertyValue)
    Sets the property's value.
  • Method Details

    • set

      T set(AgentContext context, T currentPropertyValue, T newPropertyValue)
      Sets the property's value.
      Parameters:
      context - the context the property can use in its setter logic
      currentPropertyValue - the property's currently stored value
      newPropertyValue - the value the property is being set to
      Returns:
      the value the property should store after the set