Class FieldDiff
java.lang.Object
com.polarion.platform.persistence.spi.diff.FieldDiff
- All Implemented Interfaces:
IFieldDiff
- Author:
- POLARION SOFTWARE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getAdded()
getAfter()
int
hashCode()
boolean
Call this method to determine, whether theIFieldDiff.getAdded()
/IFieldDiff.getRemoved()
(for Collections) orIFieldDiff.getBefore()
/IFieldDiff.getAfter()
(for scalars) method pair is valid.toString()
-
Constructor Details
-
FieldDiff
-
FieldDiff
-
-
Method Details
-
getFieldName
- Specified by:
getFieldName
in interfaceIFieldDiff
- Returns:
- Name of the dield represented by this diff.
-
isCollection
public boolean isCollection()Description copied from interface:IFieldDiff
Call this method to determine, whether theIFieldDiff.getAdded()
/IFieldDiff.getRemoved()
(for Collections) orIFieldDiff.getBefore()
/IFieldDiff.getAfter()
(for scalars) method pair is valid.- Specified by:
isCollection
in interfaceIFieldDiff
- Returns:
- the name of the field
-
getBefore
- Specified by:
getBefore
in interfaceIFieldDiff
- Returns:
- The field value before (for scalars only).
-
getAfter
- Specified by:
getAfter
in interfaceIFieldDiff
- Returns:
- The field value after (for scalars only).
-
getAdded
- Specified by:
getAdded
in interfaceIFieldDiff
- Returns:
- Collection of values added into this field's collection
Returns
Collections.singletonList(getAfter())
for scalar fields.
-
getRemoved
- Specified by:
getRemoved
in interfaceIFieldDiff
- Returns:
- Immutable collection of valued removed from this field's collection.
Returns
Collections.singletonList(getBefore())
for scalar fields.
-
equals
-
hashCode
public int hashCode() -
toString
-