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
Modifier and TypeFieldDescriptionprotected ValueExtractor
The underlying ValueExtractor.protected String
TheUniversalExtractor name(s)
expression to evaluate.protected ValueUpdater
The underlying ValueUpdater. -
Constructor Summary
ConstructorDescriptionDefault constructor (necessary for the ExternalizableLite and PortableObject interfaces).UniversalManipulator
(String sExpr) Construct a UniversalManipulator based on anUniversalExtractor name(s)
expression. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the UniversalManipulator with another object to determine equality.Retrieve the underlying ValueExtractor reference.Retrieve the underlying ValueUpdater reference.int
hashCode()
Determine a hash value for the UniversalManipulator object according to the generalObject.hashCode()
contract.void
Restore the contents of a user type instance by reading its state using the specified PofReader object.void
Restore 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.void
writeExternal
(PofWriter out) Save the contents of a POF user type instance by writing its state using the specified PofWriter object.void
writeExternal
(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:
getExtractor
in interfaceValueManipulator
- Returns:
- the ValueExtractor
-
getUpdater
Retrieve the underlying ValueUpdater reference.- Specified by:
getUpdater
in 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:
readExternal
in 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:
writeExternal
in 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:
readExternal
in 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:
writeExternal
in interfacePortableObject
- Parameters:
out
- the PofWriter to which to write the object's state- Throws:
IOException
- if an I/O error occurs
-