public class

MapEntryAdder

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.expression.MapEntryAdder

Class Overview

MapEntryAdder is used to add entries to a map.

MapEntryAdder supplies two updaters:

When both of these updaters have been called, the entry adder method is called. Once this has happened then the values can be updated again. Note that only the Context passed by the last update will be used.

Summary

Public Constructors
MapEntryAdder(Method method)
Construct a MapEntryAdder which adds entries to given method.
Public Methods
Updater getKeyUpdater()
Gets the entry key Updater.
Updater getValueUpdater()
Gets the entry value Updater.
static void setLog(Log newLog)
Sets the logger used by this class.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MapEntryAdder (Method method)

Construct a MapEntryAdder which adds entries to given method.

Parameters
method the Method called to add a key-value entry
Throws
IllegalArgumentException if the given method does not take two parameters

Public Methods

public Updater getKeyUpdater ()

Gets the entry key Updater. This is used to update the entry key value to the read value. If getValueUpdater() has been called previously, then this trigger the updating of the adder method.

Returns
  • the Updater which should be used to populate the entry key

public Updater getValueUpdater ()

Gets the entry value Updater. This is used to update the entry key value to the read value. If getKeyUpdater() has been called previously, then this trigger the updating of the adder method.

Returns
  • the Updater which should be used to populate the entry value

public static void setLog (Log newLog)

Sets the logger used by this class.

Parameters
newLog log to this