Class AbstractDomainObjectListenerBuilder.AnyBuilder

java.lang.Object
ghidra.framework.model.AbstractDomainObjectListenerBuilder.AnyBuilder
Enclosing class:
AbstractDomainObjectListenerBuilder<R extends DomainObjectChangeRecord,B extends AbstractDomainObjectListenerBuilder<R,B>>

public class AbstractDomainObjectListenerBuilder.AnyBuilder extends Object
Sub-builder for collection eventTypes before eventually being association with a callback or callback with termination
  • Constructor Details

    • AnyBuilder

      public AnyBuilder(EventType[] eventTypes)
  • Method Details

    • call

      public B call(Callback callback)
      Provides the callback to be associated with this collection of event types.
      Parameters:
      callback - the callback for this collection of event types
      Returns:
      the main event builder that created this sub-builder
    • call

      public B call(Consumer<DomainObjectChangedEvent> consumer)
      Provides the callback to be associated with this collection of event types.
      Parameters:
      consumer - the callback for this collection of event types
      Returns:
      the main event builder that created this sub-builder
    • terminate

      public B terminate(Callback callback)
      Provides the callback with termination to be associated with this collection of event types.
      Parameters:
      callback - the callback for this collection of event types
      Returns:
      the main event builder that created this sub-builder
    • terminate

      public B terminate(Consumer<DomainObjectChangedEvent> consumer)
      Provides the consumer with termination to be associated with this collection of event types. This form of terminate includes the event when performing the callback.
      Parameters:
      consumer - the consumer for this collection of event types
      Returns:
      the main event builder that created this sub-builder