public class DiffImpl extends Object implements Diff, Comparable<DiffImpl>, Formattable
Diff.Data, Diff.Ignore
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(Object other) |
void |
formatTo(Formatter formatter,
int flags,
int width,
int precision) |
Diff |
get(String name) |
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.
|
String |
getName() |
Tree |
getNewer() |
Tree |
getOlder() |
Type |
getType() |
int |
hashCode() |
Diff.Data |
serialize() |
String |
toString() |
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 Collection<? extends Diff> getChildren()
getChildren
in interface Diff
public int compareTo(DiffImpl other)
compareTo
in interface Comparable<DiffImpl>
public void formatTo(Formatter formatter, int flags, int width, int precision)
formatTo
in interface Formattable
Copyright © 2021 aQute SARL. All rights reserved.