Package com.complexible.common.rdf
Class StatementComparator
- java.lang.Object
-
- com.complexible.common.rdf.StatementComparator
-
public class StatementComparator extends java.lang.Object
Used to serialize trig in a both pretty (all triples in a graph grouped together) and deterministic way. This makes it easier to both determine what changed in RDF and to update only the triples that changed in expected RDF, making tests easier to maintain and PRs easier to review.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<Statement>
COMPARATOR
-
Constructor Summary
Constructors Constructor Description StatementComparator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Comparator<Statement>
comparator()
static int
compare(Statement s1, Statement s2)
-
-
-
Field Detail
-
COMPARATOR
public static final java.util.Comparator<Statement> COMPARATOR
-
-