Package com.webmethods.rtl.util.obj
Class DifferenceEntry
java.lang.Object
com.webmethods.rtl.util.obj.DifferenceEntry
- All Implemented Interfaces:
Serializable
Difference entry represents change of the value on some named object.
See
DifferenceMap
- the only container that manages and operates
with difference entries- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes empty difference entryDifferenceEntry
(String name, Object oldValue, Object newValue) Initializes entry with all predefined propertiesDifferenceEntry
(String name, Object oldValue, Object newValue, String language) Initializes entry with all predefined properties -
Method Summary
Modifier and TypeMethodDescriptionboolean
Override default comparison logic - compare only entry namesprotected void
finalize()
Remove unused outside referencesgetName()
Gets the name of the difference entryGets a new value for specified difference entryGets an old value for specified difference entryint
hashCode()
Overrides default hash code calculation mechanism - hash code is calculated on the base of the entry namevoid
reset()
Clears all outside referencesvoid
setLanguage
(String language) void
Sets name of the difference entryvoid
setNewValue
(Object newValue) Sets a new value for specified difference entryvoid
setOldValue
(Object oldValue) Sets an old value for specified difference entrytoString()
Provides string presentation for the debugging purposes
-
Constructor Details
-
DifferenceEntry
public DifferenceEntry()Initializes empty difference entry -
DifferenceEntry
Initializes entry with all predefined properties- Parameters:
name
- Entry nameoldValue
- Old entry valuenewValue
- New entry value
-
DifferenceEntry
Initializes entry with all predefined properties- Parameters:
name
- Entry nameoldValue
- Old entry valuenewValue
- New entry value
-
-
Method Details
-
finalize
Remove unused outside references -
reset
public void reset()Clears all outside references -
hashCode
public int hashCode()Overrides default hash code calculation mechanism - hash code is calculated on the base of the entry name -
equals
Override default comparison logic - compare only entry names -
toString
Provides string presentation for the debugging purposes -
setName
Sets name of the difference entry- Parameters:
name
- Entry name
-
getName
Gets the name of the difference entry- Returns:
- Difference entry name
-
getOldValue
Gets an old value for specified difference entry- Returns:
- old value specified for entry
-
setOldValue
Sets an old value for specified difference entry- Parameters:
oldValue
- Set old value reference for entry
-
setNewValue
Sets a new value for specified difference entry- Parameters:
newValue
- Set new value for the entry
-
getNewValue
Gets a new value for specified difference entry- Returns:
- new value for this entry
-
getLanguage
- Returns:
- the language (if any). May be null.
-
setLanguage
- Parameters:
language
- the language to set (if any). May be null.
-