Package com.tangosol.util
Class UniversalManipulator
java.lang.Object
com.tangosol.util.UniversalManipulator
- All Implemented Interfaces:
 ExternalizableLite,PortableObject,ValueManipulator,Serializable
public class UniversalManipulator
extends Object
implements ValueManipulator, ExternalizableLite, PortableObject
UniversalManipulator implementation.
- Author:
 - ic 2011.07.14, jf 2023.06.23
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ValueExtractorThe underlying ValueExtractor.protected StringTheUniversalExtractor name(s)expression to evaluate.protected ValueUpdaterThe underlying ValueUpdater. - 
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor (necessary for the ExternalizableLite and PortableObject interfaces).UniversalManipulator(String sExpr) Construct a UniversalManipulator based on anUniversalExtractor name(s)expression. - 
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the UniversalManipulator with another object to determine equality.Retrieve the underlying ValueExtractor reference.Retrieve the underlying ValueUpdater reference.inthashCode()Determine a hash value for the UniversalManipulator object according to the generalObject.hashCode()contract.voidRestore the contents of a user type instance by reading its state using the specified PofReader object.voidRestore the contents of this object by loading the object's state from the passed DataInput object.toString()Provide a human-readable description of this UniversalManipulator object.voidwriteExternal(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.voidwriteExternal(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object. 
- 
Field Details
- 
m_sExpr
TheUniversalExtractor name(s)expression to evaluate. - 
m_extractor
The underlying ValueExtractor. - 
m_updater
The underlying ValueUpdater. 
 - 
 - 
Constructor Details
- 
UniversalManipulator
public UniversalManipulator()Default constructor (necessary for the ExternalizableLite and PortableObject interfaces). - 
UniversalManipulator
Construct a UniversalManipulator based on anUniversalExtractor name(s)expression.- Parameters:
 sExpr- the Universal expression to evaluate
 
 - 
 - 
Method Details
- 
getExtractor
Retrieve the underlying ValueExtractor reference.- Specified by:
 getExtractorin interfaceValueManipulator- Returns:
 - the ValueExtractor
 
 - 
getUpdater
Retrieve the underlying ValueUpdater reference.- Specified by:
 getUpdaterin interfaceValueManipulator- Returns:
 - the ValueUpdater
 
 - 
equals
Compare the UniversalManipulator with another object to determine equality. - 
hashCode
public int hashCode()Determine a hash value for the UniversalManipulator object according to the generalObject.hashCode()contract. - 
toString
Provide a human-readable description of this UniversalManipulator object. - 
readExternal
Restore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
 readExternalin interfaceExternalizableLite- Parameters:
 in- the DataInput stream to read data from in order to restore the state of this object- Throws:
 IOException- if an I/O exception occurs
 - 
writeExternal
Save the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
 writeExternalin interfaceExternalizableLite- Parameters:
 out- the DataOutput stream to write the state of this object to- Throws:
 IOException- if an I/O exception occurs
 - 
readExternal
Restore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
 readExternalin interfacePortableObject- Parameters:
 in- the PofReader from which to read the object's state- Throws:
 IOException- if an I/O error occurs
 - 
writeExternal
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
 writeExternalin interfacePortableObject- Parameters:
 out- the PofWriter to which to write the object's state- Throws:
 IOException- if an I/O error occurs
 
 -