public class DiffIterableUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DiffIterableUtil.ChangeBuilder |
static class |
DiffIterableUtil.ChangeBuilderBase |
static class |
DiffIterableUtil.ExpandChangeBuilder |
static class |
DiffIterableUtil.LineRangeData<T> |
Constructor and Description |
---|
DiffIterableUtil() |
Modifier and Type | Method and Description |
---|---|
static DiffIterable |
create(Diff.Change change,
int length1,
int length2) |
static DiffIterable |
create(java.util.List<? extends Range> ranges,
int length1,
int length2) |
static DiffIterable |
createFragments(java.util.List<? extends DiffFragment> fragments,
int length1,
int length2) |
static DiffIterable |
createUnchanged(java.util.List<? extends Range> ranges,
int length1,
int length2) |
static FairDiffIterable |
diff(int [] data1,
int [] data2,
ProgressIndicator indicator) |
static <T> FairDiffIterable |
diff(java.util.List<? extends T> objects1,
java.util.List<? extends T> objects2,
ProgressIndicator indicator) |
static <T> FairDiffIterable |
diff(T [] data1,
T [] data2,
ProgressIndicator indicator) |
static DiffIterable |
expandedIterable(DiffIterable iterable,
int offset1,
int offset2,
int length1,
int length2) |
static <T> java.util.List<DiffIterableUtil.LineRangeData> |
extractDataRanges(java.util.List<? extends T> objects1,
java.util.List<? extends T> objects2,
DiffIterable iterable) |
static FairDiffIterable |
fair(DiffIterable iterable) |
static DiffIterable |
invert(DiffIterable iterable) |
static java.lang.Iterable<Pair<Range,java.lang.Boolean>> |
iterateAll(DiffIterable iterable) |
static void |
setVerifyEnabled(boolean value) |
static DiffIterable |
subiterable(DiffIterable iterable,
int start1,
int end1,
int start2,
int end2) |
static void |
verify(DiffIterable iterable) |
static void |
verifyFair(DiffIterable iterable) |
public static FairDiffIterable diff(int [] data1, int [] data2, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public static <T> FairDiffIterable diff(T [] data1, T [] data2, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public static <T> FairDiffIterable diff(java.util.List<? extends T> objects1, java.util.List<? extends T> objects2, ProgressIndicator indicator) throws DiffTooBigException
DiffTooBigException
public static DiffIterable create(Diff.Change change, int length1, int length2)
public static DiffIterable createFragments(java.util.List<? extends DiffFragment> fragments, int length1, int length2)
public static DiffIterable create(java.util.List<? extends Range> ranges, int length1, int length2)
public static DiffIterable createUnchanged(java.util.List<? extends Range> ranges, int length1, int length2)
public static DiffIterable invert(DiffIterable iterable)
public static FairDiffIterable fair(DiffIterable iterable)
public static DiffIterable subiterable(DiffIterable iterable, int start1, int end1, int start2, int end2)
public static DiffIterable expandedIterable(DiffIterable iterable, int offset1, int offset2, int length1, int length2)
public static java.lang.Iterable<Pair<Range,java.lang.Boolean>> iterateAll(DiffIterable iterable)
public static void setVerifyEnabled(boolean value)
public static void verify(DiffIterable iterable)
public static void verifyFair(DiffIterable iterable)
public static <T> java.util.List<DiffIterableUtil.LineRangeData> extractDataRanges(java.util.List<? extends T> objects1, java.util.List<? extends T> objects2, DiffIterable iterable)