Package com.rpl.rama.diffs
Class MultiSetAddDiff
java.lang.Object
com.rpl.rama.diffs.Diff
com.rpl.rama.diffs.MultiSetAddDiff
Represents a value being added to a multi-set (a map from element to count). Top-level diff. Expands to
SetAddDiff if element did not previously exist in multi-set.- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanProcess(Diff.Processor processor) protected voiddoProcess(Diff.Processor processor) booleangetElem()Value added to multi-setintNumber of times element appears after adding itintNumber of times element appears before adding itinthashCode()toString()protected boolean
-
Constructor Details
-
MultiSetAddDiff
-
-
Method Details
-
getElem
Value added to multi-set -
getNewCount
public int getNewCount()Number of times element appears after adding it -
getOldCount
public int getOldCount()Number of times element appears before adding it -
walkExpanded
- Overrides:
walkExpandedin classDiff
-
doProcess
-
canProcess
- Specified by:
canProcessin classDiff
-
equals
-
hashCode
public int hashCode() -
toString
-