Class FieldDiff
java.lang.Object
com.polarion.platform.persistence.spi.diff.FieldDiff
- All Implemented Interfaces:
IFieldDiff
- Author:
- POLARION SOFTWARE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAdded()getAfter()inthashCode()booleanCall 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:
getFieldNamein interfaceIFieldDiff- Returns:
- Name of the dield represented by this diff.
-
isCollection
public boolean isCollection()Description copied from interface:IFieldDiffCall this method to determine, whether theIFieldDiff.getAdded()/IFieldDiff.getRemoved()(for Collections) orIFieldDiff.getBefore()/IFieldDiff.getAfter()(for scalars) method pair is valid.- Specified by:
isCollectionin interfaceIFieldDiff- Returns:
- the name of the field
-
getBefore
- Specified by:
getBeforein interfaceIFieldDiff- Returns:
- The field value before (for scalars only).
-
getAfter
- Specified by:
getAfterin interfaceIFieldDiff- Returns:
- The field value after (for scalars only).
-
getAdded
- Specified by:
getAddedin interfaceIFieldDiff- Returns:
- Collection of values added into this field's collection
Returns
Collections.singletonList(getAfter())for scalar fields.
-
getRemoved
- Specified by:
getRemovedin 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
-