| |
|
| java.lang.Object org.apache.commons.betwixt.expression.MapEntryAdder
MapEntryAdder | public class MapEntryAdder (Code) | | 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.
author: Robert Burrell Donkin since: 0.5 |
Constructor Summary | |
public | MapEntryAdder(Method method) Construct a MapEntryAdder which adds entries to given method. |
MapEntryAdder | public MapEntryAdder(Method method)(Code) | | 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 |
getKeyUpdater | public Updater getKeyUpdater()(Code) | | Gets the entry key Updater .
This is used to update the entry key value to the read value.
If
MapEntryAdder.getValueUpdater has been called previously,
then this trigger the updating of the adder method.
the Updater which should be used to populate the entry key |
getValueUpdater | public Updater getValueUpdater()(Code) | | Gets the entry value Updater .
This is used to update the entry key value to the read value.
If
MapEntryAdder.getKeyUpdater has been called previously,
then this trigger the updating of the adder method.
the Updater which should be used to populate the entry value |
setLog | public static void setLog(Log newLog)(Code) | | Sets the logger used by this class.
Parameters: newLog - log to this |
|
|
|