|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
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
com.tangosol.util.extractor.PofUpdater
public class PofUpdater
POF-based ValueUpdater implementation.
Constructor Summary | |
---|---|
PofUpdater() Default constructor (necessary for the PortableObject interface). |
|
PofUpdater(int iProp) Constructs a PofUpdater based on a property index. |
|
PofUpdater(PofNavigator navigator) Constructs a PofUpdater based on a POF navigator. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o) Compare the PofUpdater with another object to determine equality. |
int |
hashCode() Determine a hash value for the PofUpdater object according to the general Object.hashCode() contract. |
void |
readExternal(PofReader in) Restore the contents of a user type instance by reading its state using the specified PofReader object. |
java.lang.String |
toString() Return a human-readable description for this PofUpdater. |
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 passed entry using the specified value. |
void |
writeExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object. |
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 |
Constructor Detail |
---|
public PofUpdater()
public PofUpdater(int iProp)
This constructor is equivalent to:
PofUpdater updater = new PofUpdater(new SimplePofPath(iProp));
iProp
- property indexpublic PofUpdater(PofNavigator navigator)
navigator
- POF navigatorMethod Detail |
---|
public void update(java.lang.Object oTarget, java.lang.Object oValue)
update
in interface ValueUpdater
update
in class AbstractUpdater
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)
It is expected that this updater will only be used against POF-encoded entries implementing BinaryEntry
interface.
updateEntry
in class AbstractUpdater
entry
- the entry to updateoValue
- the new value to update the target's property withjava.lang.UnsupportedOperationException
- if the specified target object is not a POF-encoded BinaryEntry
or the serializer is not a PofContextPofNavigationException
- if the property cannot be located (navigated to)public boolean equals(java.lang.Object o)
public int hashCode()
Object.hashCode()
contract.public java.lang.String toString()
public void readExternal(PofReader in) throws java.io.IOException
readExternal
in interface PortableObject
in
- the PofReader from which to read the object's statejava.io.IOException
- if an I/O error occurspublic void writeExternal(PofWriter out) throws java.io.IOException
writeExternal
in interface PortableObject
out
- the PofWriter to which to write the object's statejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |