public class DiffImpl extends java.lang.Object implements Diff, java.lang.Comparable<DiffImpl>, java.util.Formattable
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) |
private static void |
format(java.util.Formatter formatter,
Diff diff,
java.util.List<java.lang.String> formats,
java.util.Set<Delta> deltas,
int indent,
int depth) |
void |
formatTo(java.util.Formatter formatter,
int flags,
int width,
int precision) |
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 Diff
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(DiffImpl other)
compareTo
in interface java.lang.Comparable<DiffImpl>
public void formatTo(java.util.Formatter formatter, int flags, int width, int precision)
formatTo
in interface java.util.Formattable