| 程序包 | 说明 |
|---|---|
| io.github.daichangya | |
| io.github.daichangya.convert | |
| io.github.daichangya.diff |
| 限定符和类型 | 方法和说明 |
|---|---|
List<ChangeObject<String>> |
Diff.diff(String oldValue,
String newValue)
执行差异计算
|
List<ChangeObject<String>> |
Diff.diff(String oldValue,
String newValue,
DiffOptions options)
执行差异计算(带选项)
|
protected List<ChangeObject<String>> |
Diff.postProcess(List<ChangeObject<String>> changeObjects,
DiffOptions options)
后处理变化对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<ChangeObject<String>> |
Diff.postProcess(List<ChangeObject<String>> changeObjects,
DiffOptions options)
后处理变化对象
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<DmpConverter.DmpOperation<T>> |
DmpConverter.convertChangesToDMP(List<ChangeObject<T>> changes)
将变化对象列表转换为 DMP 格式
|
static String |
XmlConverter.convertChangesToXML(List<ChangeObject<String>> changes)
将变化对象列表转换为序列化的 XML 格式
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> List<ChangeObject<String>> |
ArrayDiff.diffArrays(List<T> oldList,
List<T> newList)
对两个列表进行差异比较
|
static <T> List<ChangeObject<String>> |
ArrayDiff.diffArrays(List<T> oldList,
List<T> newList,
DiffOptions options)
对两个列表进行差异比较(带选项)
|
static <T> List<ChangeObject<String>> |
ArrayDiff.diffArrays(T[] oldArr,
T[] newArr)
对两个数组进行差异比较
|
static List<ChangeObject<String>> |
CharacterDiff.diffChars(String oldStr,
String newStr)
对两个文本块进行字符级别的差异比较
|
static List<ChangeObject<String>> |
CharacterDiff.diffChars(String oldStr,
String newStr,
DiffOptions options)
对两个文本块进行字符级别的差异比较(带选项)
|
static List<ChangeObject<String>> |
CssDiff.diffCss(String oldStr,
String newStr)
对两个 CSS 文本块进行差异比较
|
static List<ChangeObject<String>> |
CssDiff.diffCss(String oldStr,
String newStr,
DiffOptions options)
对两个 CSS 文本块进行差异比较(带选项)
|
static List<ChangeObject<String>> |
JsonDiff.diffJson(Object oldObj,
Object newObj)
对两个 JSON 对象进行差异比较
|
static List<ChangeObject<String>> |
JsonDiff.diffJson(Object oldObj,
Object newObj,
DiffOptions options)
对两个 JSON 对象进行差异比较(带选项)
|
static List<ChangeObject<String>> |
LineDiff.diffLines(String oldStr,
String newStr)
对两个文本块进行行级别的差异比较
|
static List<ChangeObject<String>> |
LineDiff.diffLines(String oldStr,
String newStr,
DiffOptions options)
对两个文本块进行行级别的差异比较(带选项)
|
List<ChangeObject<String>> |
JsonDiff.diffObjects(Object oldObj,
Object newObj)
对象差异比较
|
List<ChangeObject<String>> |
JsonDiff.diffObjects(Object oldObj,
Object newObj,
DiffOptions options)
对象差异比较(带选项)
|
static List<ChangeObject<String>> |
SentenceDiff.diffSentences(String oldStr,
String newStr)
对两个文本块进行句子级别的差异比较
|
static List<ChangeObject<String>> |
SentenceDiff.diffSentences(String oldStr,
String newStr,
DiffOptions options)
对两个文本块进行句子级别的差异比较(带选项)
|
static List<ChangeObject<String>> |
LineDiff.diffTrimmedLines(String oldStr,
String newStr)
对两个文本块进行行级别的差异比较(忽略空白)
|
static List<ChangeObject<String>> |
WordDiff.diffWords(String oldStr,
String newStr)
对两个文本块进行单词级别的差异比较
|
static List<ChangeObject<String>> |
WordDiff.diffWords(String oldStr,
String newStr,
DiffOptions options)
对两个文本块进行单词级别的差异比较(带选项)
|
Copyright © 2025. All rights reserved.