Package ghidra.async

Interface AsyncReference.FilterFunction<T,C>

Type Parameters:
T - the type of object stored by the reference
C - when updated, the type of the causes of those updates
Enclosing class:
AsyncReference<T,C>
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 AsyncReference.FilterFunction<T,C>
A function to filter updates to an AsyncReference
  • Method Details

    • filter

      T filter(T cur, T set, C cause)
      Filter an incoming update, i.e., call to AsyncReference.set(Object, Object)
      Parameters:
      cur - the current value of the reference
      set - the incoming value from the update
      cause - the cause of the update
      Returns:
      the new value to assign to the reference