Class DefaultDeltaSummary
java.lang.Object
com.helixframework.delta.internal.DefaultDeltaSummary
- All Implemented Interfaces:
DeltaSummary
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultDeltaSummary(boolean changed, int changeCount, int addedCount, int removedCount, int replacedCount) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of add operations.intReturns the total number of atomic changes.booleanchanged()Returns whether any changes were detected.intReturns the number of remove operations.intReturns the number of replace operations.
-
Constructor Details
-
DefaultDeltaSummary
public DefaultDeltaSummary(boolean changed, int changeCount, int addedCount, int removedCount, int replacedCount)
-
-
Method Details
-
changed
public boolean changed()Description copied from interface:DeltaSummaryReturns whether any changes were detected.- Specified by:
changedin interfaceDeltaSummary- Returns:
truewhen documents differ
-
changeCount
public int changeCount()Description copied from interface:DeltaSummaryReturns the total number of atomic changes.- Specified by:
changeCountin interfaceDeltaSummary- Returns:
- total change count
-
addedCount
public int addedCount()Description copied from interface:DeltaSummaryReturns the number of add operations.- Specified by:
addedCountin interfaceDeltaSummary- Returns:
- added count
-
removedCount
public int removedCount()Description copied from interface:DeltaSummaryReturns the number of remove operations.- Specified by:
removedCountin interfaceDeltaSummary- Returns:
- removed count
-
replacedCount
public int replacedCount()Description copied from interface:DeltaSummaryReturns the number of replace operations.- Specified by:
replacedCountin interfaceDeltaSummary- Returns:
- replaced count
-