Class DifferenceEntry

java.lang.Object
com.webmethods.rtl.util.obj.DifferenceEntry
All Implemented Interfaces:
Serializable

public class DifferenceEntry extends Object implements 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 Details

    • DifferenceEntry

      public DifferenceEntry()
      Initializes empty difference entry
    • DifferenceEntry

      public DifferenceEntry(String name, Object oldValue, Object newValue)
      Initializes entry with all predefined properties
      Parameters:
      name - Entry name
      oldValue - Old entry value
      newValue - New entry value
    • DifferenceEntry

      public DifferenceEntry(String name, Object oldValue, Object newValue, String language)
      Initializes entry with all predefined properties
      Parameters:
      name - Entry name
      oldValue - Old entry value
      newValue - New entry value
  • Method Details

    • finalize

      protected void finalize() throws Throwable
      Remove unused outside references
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • 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
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Override default comparison logic - compare only entry names
      Overrides:
      equals in class Object
      Parameters:
      obj - another difference entry
      Returns:
      True, if entries are equal and False - otherwise
    • toString

      public String toString()
      Provides string presentation for the debugging purposes
      Overrides:
      toString in class Object
      Returns:
      Entry string presentation (debug only)
    • setName

      public void setName(String name)
      Sets name of the difference entry
      Parameters:
      name - Entry name
    • getName

      public String getName()
      Gets the name of the difference entry
      Returns:
      Difference entry name
    • getOldValue

      public Object getOldValue()
      Gets an old value for specified difference entry
      Returns:
      old value specified for entry
    • setOldValue

      public void setOldValue(Object oldValue)
      Sets an old value for specified difference entry
      Parameters:
      oldValue - Set old value reference for entry
    • setNewValue

      public void setNewValue(Object newValue)
      Sets a new value for specified difference entry
      Parameters:
      newValue - Set new value for the entry
    • getNewValue

      public Object getNewValue()
      Gets a new value for specified difference entry
      Returns:
      new value for this entry
    • getLanguage

      public String getLanguage()
      Returns:
      the language (if any). May be null.
    • setLanguage

      public void setLanguage(String language)
      Parameters:
      language - the language to set (if any). May be null.