public class DifferenceEntry extends Object implements Serializable
DifferenceMap
- the only container that manages and operates
with difference entriesDifferenceMap
,
Serialized FormConstructor and Description |
---|
DifferenceEntry()
Initializes empty difference entry
|
DifferenceEntry(String name,
Object oldValue,
Object newValue)
Initializes entry with all predefined properties
|
DifferenceEntry(String name,
Object oldValue,
Object newValue,
String language)
Initializes entry with all predefined properties
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Override default comparison logic - compare only entry names
|
protected void |
finalize()
Remove unused outside references
|
String |
getLanguage() |
String |
getName()
Gets the name of the difference entry
|
Object |
getNewValue()
Gets a new value for specified difference entry
|
Object |
getOldValue()
Gets an old value for specified difference entry
|
int |
hashCode()
Overrides default hash code calculation mechanism - hash code is
calculated on the base of the entry name
|
void |
reset()
Clears all outside references
|
void |
setLanguage(String language) |
void |
setName(String name)
Sets name of the difference entry
|
void |
setNewValue(Object newValue)
Sets a new value for specified difference entry
|
void |
setOldValue(Object oldValue)
Sets an old value for specified difference entry
|
String |
toString()
Provides string presentation for the debugging purposes
|
public DifferenceEntry()
public DifferenceEntry(String name, Object oldValue, Object newValue)
name
- Entry nameoldValue
- Old entry valuenewValue
- New entry valueprotected void finalize() throws Throwable
public void reset()
public int hashCode()
public boolean equals(Object obj)
public String toString()
public void setName(String name)
name
- Entry namepublic String getName()
public Object getOldValue()
public void setOldValue(Object oldValue)
oldValue
- Set old value reference for entrypublic void setNewValue(Object newValue)
newValue
- Set new value for the entrypublic Object getNewValue()
public String getLanguage()
public void setLanguage(String language)
language
- the language to set (if any). May be null.