Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CompositeProcessor<K, V>

CompositeProcessor represents a collection of entry processors that are invoked sequentially against the same MapEntry.

typeparam

the type of value returned by the EntryProcessor

Type parameters

  • K = any

    the type of the Map entry key

  • V = any

    the type of the Map entry value

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Construct a CompositeProcessor for the specified array of individual entry processors.

    The result of the CompositeProcessor execution is an array of results returned by the individual EntryProcessor invocations.

    Parameters

    • Rest ...processors: EntryProcessor<K, V>[]

      the entry processor array

    Returns CompositeProcessor

Properties

@class

@class: string

Protected processors

processors: Array<EntryProcessor<K, V>>

The underlying entry processor array.

Methods

andThen

when

  • Returns a ConditionalProcessor comprised of this processor and the provided filter.

    The specified entry processor gets invoked if and only if the filter applied to the entry evaluates to true; otherwise the result of the invocation will return null.

    Parameters

    Returns EntryProcessor<K, V, any>