public class MultiSetRemoveDiff extends Diff
SetRemoveDiff
if element no longer exists in multi-set.Modifier and Type | Class and Description |
---|---|
static interface |
MultiSetRemoveDiff.Processor |
Constructor and Description |
---|
MultiSetRemoveDiff(java.lang.Object elem,
int newCount,
int oldCount) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canProcess(Diff.Processor processor) |
protected void |
doProcess(Diff.Processor processor) |
boolean |
equals(java.lang.Object other) |
java.lang.Object |
getElem()
Value removed to multi-set
|
int |
getNewCount()
Number of times element appears after removing it
|
int |
getOldCount()
Number of times element appears before removing it
|
int |
hashCode() |
java.lang.String |
toString() |
protected boolean |
walkExpanded(RamaFunction1 fn) |
public MultiSetRemoveDiff(java.lang.Object elem, int newCount, int oldCount)
public java.lang.Object getElem()
public int getNewCount()
public int getOldCount()
protected boolean walkExpanded(RamaFunction1 fn)
walkExpanded
in class Diff
protected void doProcess(Diff.Processor processor)
protected boolean canProcess(Diff.Processor processor)
canProcess
in class Diff
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object