Class ExecutionAttribute.DerivedAttributeBuilder<T,​U>

  • Enclosing class:
    ExecutionAttribute<T>

    public static final class ExecutionAttribute.DerivedAttributeBuilder<T,​U>
    extends Object
    • Method Detail

      • readMapping

        public ExecutionAttribute.DerivedAttributeBuilder<T,​U> readMapping​(Function<U,​T> readMapping)
        Set the "read" mapping for this derived attribute. The provided function accepts the current value of the "real" attribute and returns the value of the derived attribute.
      • writeMapping

        public ExecutionAttribute.DerivedAttributeBuilder<T,​U> writeMapping​(BiFunction<U,​T,​U> writeMapping)
        Set the "write" mapping for this derived attribute. The provided function accepts the current value of the "real" attribute, the value that we're trying to set to the derived attribute, and returns the value to set to the "real" attribute.