public class MultiSetAddDiff extends Diff
SetAddDiff
if element did not previously exist in multi-set.Modifier and Type | Class and Description |
---|---|
static interface |
MultiSetAddDiff.Processor |
Constructor and Description |
---|
MultiSetAddDiff(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 added to multi-set
|
int |
getNewCount()
Number of times element appears after adding it
|
int |
getOldCount()
Number of times element appears before adding it
|
int |
hashCode() |
java.lang.String |
toString() |
protected boolean |
walkExpanded(RamaFunction1 fn) |
public MultiSetAddDiff(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