public class DiffImpl extends java.lang.Object implements Diff, java.lang.Comparable<DiffImpl>
Diff.Data, Diff.Ignore| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.Collection<DiffImpl> |
children |
(package private) Delta |
delta |
(package private) Tree |
newer |
(package private) Tree |
older |
(package private) static Delta[][] |
TRANSITIONS
The transitions table defines how the state is escalated depending on the
children.
|
| Constructor and Description |
|---|
DiffImpl(Tree newer,
Tree older)
Compares the newer against the older, traversing the children if
necessary.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DiffImpl other) |
boolean |
equals(java.lang.Object other) |
Diff |
get(java.lang.String name) |
java.util.Collection<? extends Diff> |
getChildren() |
Delta |
getDelta()
Return the absolute delta.
|
Delta |
getDelta(Diff.Ignore ignore)
This getDelta calculates the delta but allows the caller to ignore
certain Diff objects by calling back the ignore call back parameter.
|
java.lang.String |
getName() |
Tree |
getNewer() |
Tree |
getOlder() |
Type |
getType() |
int |
hashCode() |
Diff.Data |
serialize() |
java.lang.String |
toString() |
final Tree older
final Tree newer
final java.util.Collection<DiffImpl> children
final Delta delta
static final Delta[][] TRANSITIONS
public Delta getDelta()
getDelta(aQute.bnd.service.diff.Diff.Ignore) that allows you to
ignore Diff objects on the fly (and calculate their parents accordingly).public Delta getDelta(Diff.Ignore ignore)
public java.util.Collection<? extends Diff> getChildren()
getChildren in interface Diffpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(DiffImpl other)
compareTo in interface java.lang.Comparable<DiffImpl>