Java 内容差异比较库 Diffator

码农软件 · 软件分类 · 常用工具包 · 2019-08-14 18:12:45

软件介绍

Diffator 是一个 Java 实现的双向的内容差异 diff 比较库,相似度范围 0.0 ~ 1.0。

示例代码:

String[] wordsA = ...;
String[] wordsB = ...;

Content ca = new Content(wordsA);
Content cb = new Content(wordsB);

FileOutputStream fstr = new FileOutputStream("test.html");

SimpleHtmlDiffWriter writer = new SimpleHtmlDiffWriter(fstr);
writer.setTitle("My sample diff");
writer.setNewLinesStrategy(NewLinesStrategy.perBlock);

ContentComparator.compareStatic(ca, cb, writer);

差异结果:

本文地址:https://codercto.com/soft/d/12365.html

The Filter Bubble

The Filter Bubble

Eli Pariser / Penguin Press / 2011-5-12 / GBP 16.45

In December 2009, Google began customizing its search results for each user. Instead of giving you the most broadly popular result, Google now tries to predict what you are most likely to click on. Ac......一起来看看 《The Filter Bubble》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具