public class MapEntryAdder extends Object
MapEntryAdder
is used to add entries to a map.
MapEntryAdder
supplies two updaters:
getKeyUpdater()
which allows the entry key to be updatedgetValueUpdater()
which allows the entry value to be updatedContext
passed by the last update will be used.
Constructor and Description |
---|
MapEntryAdder(Method method)
Construct a
MapEntryAdder which adds entries to given method. |
Modifier and Type | Method and Description |
---|---|
Updater |
getKeyUpdater()
Gets the entry key
Updater . |
Updater |
getValueUpdater()
Gets the entry value
Updater . |
static void |
setLog(org.apache.commons.logging.Log newLog)
Sets the logger used by this class.
|
public MapEntryAdder(Method method)
MapEntryAdder
which adds entries to given method.method
- the Method
called to add a key-value entryIllegalArgumentException
- if the given method does not take two parameterspublic static void setLog(org.apache.commons.logging.Log newLog)
newLog
- log to thispublic Updater getKeyUpdater()
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.Updater
which should be used to populate the entry keypublic Updater getValueUpdater()
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.Updater
which should be used to populate the entry valueCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.