Package com.complexible.common.rdf

# Class StatementComparator

java.lang.Object
com.complexible.common.rdf.StatementComparator

public class StatementComparator extends 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 final Comparator<Statement>`
  `COMPARATOR`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StatementComparator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Comparator<Statement>`
  `comparator()`
  `static int`
  `compare(Statement s1, Statement s2)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### COMPARATOR

    public static final Comparator<Statement> COMPARATOR

- ## Constructor Details

  - ### StatementComparator

    public StatementComparator()

- ## Method Details

  - ### comparator

    public static Comparator<Statement> comparator()

  - ### compare

    public static int compare(Statement s1, Statement s2)