Package com.rpl.rama.diffs
Class MultiSetRemoveDiff
java.lang.Object
com.rpl.rama.diffs.Diff
com.rpl.rama.diffs.MultiSetRemoveDiff
Represents a value being removed from a multi-set (a map from element to count). Top-level diff. Expands to
SetRemoveDiff if element no longer exists 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 removed to multi-setintNumber of times element appears after removing itintNumber of times element appears before removing itinthashCode()toString()protected boolean
-
Constructor Details
-
MultiSetRemoveDiff
-
-
Method Details
-
getElem
Value removed to multi-set -
getNewCount
public int getNewCount()Number of times element appears after removing it -
getOldCount
public int getOldCount()Number of times element appears before removing it -
walkExpanded
- Overrides:
walkExpandedin classDiff
-
doProcess
-
canProcess
- Specified by:
canProcessin classDiff
-
equals
-
hashCode
public int hashCode() -
toString
-