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 Summary

  Modifier and Type
  Method
  Description
  `T`
  `filter(T cur, T set, C cause)`
  Filter an incoming update, i.e., call to `AsyncReference.set(Object, Object)`

- ## 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