Class AbstractDomainObjectListenerBuilder.EachBuilder

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

public class AbstractDomainObjectListenerBuilder.EachBuilder extends Object
Sub-builder for collection eventTypes before eventually being associated with a consumer for records with those types
  • Constructor Details

    • EachBuilder

      public EachBuilder(EventType[] eventTypes)
  • Method Details

    • call

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

      public B call(BiConsumer<DomainObjectChangedEvent,R> biConsumer)
      Provides the consumer to be associated with this collection of event types.
      Parameters:
      biConsumer - the consumer for this collection of event types
      Returns:
      the main event builder that created this sub-builder