|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.BitHelper
com.tangosol.util.ExternalizableHelper
com.tangosol.util.extractor.AbstractUpdater
public abstract class AbstractUpdater
Abstract base for ValueUpdater implementations.
Starting with Coherence 3.6, when used to update information stored in a Map, subclasses have the additional ability to operate against the Map.Entry instead of just the value. This allows an updater implementation to update a desired value using all available information on the corresponding Map.Entry object and is intended to be used in advanced custom scenarios, when application code needs to look at both key and value at the same time or can make some very specific assumptions regarding to the implementation details of the underlying Entry object (e.g. BinaryEntry
). To maintain full backwards compatibility, the default behavior remains to update the Value property of the Map.Entry.
Note: subclasses are responsible for POF and/or Lite serialization of the updater.
Constructor Summary | |
---|---|
AbstractUpdater() |
Method Summary | |
---|---|
void |
update(java.lang.Object oTarget, java.lang.Object oValue) Update the state of the passed target object using the passed value. |
void |
updateEntry(java.util.Map.Entry entry, java.lang.Object oValue) Update the state of the passed entry using the passed value. |
Methods inherited from class com.tangosol.util.BitHelper |
---|
countBits, countBits, countBits, indexOfLSB, indexOfLSB, indexOfLSB, indexOfMSB, indexOfMSB, indexOfMSB, rotateLeft, rotateLeft, rotateLeft, rotateRight, rotateRight, rotateRight, toBitString, toBitString, toBitString, toBytes, toBytes, toBytes, toBytes, toInt, toInt, toLong, toLong |
Constructor Detail |
---|
public AbstractUpdater()
Method Detail |
---|
public void update(java.lang.Object oTarget, java.lang.Object oValue)
update
in interface ValueUpdater
oTarget
- the Object to update the state ofoValue
- the new value to update the state withpublic void updateEntry(java.util.Map.Entry entry, java.lang.Object oValue)
By overriding this method, an updater implementation is able to update the entry's value using all available information on the corresponding Map.Entry object and is intended to be used in advanced custom scenarios, when application code needs to look at both key and value at the same time or can make some very specific assumptions regarding to the implementation details of the underlying Entry object.
entry
- the Entry object whose value is to be updatedoValue
- the new value to update the entry with; for intrinsic types, the specified value is expected to be a standard wrapper type in the same manner that reflection works (e.g. an int value would be passed as a java.lang.Integer)
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |