Package org.fcrepo.http.commons.api.rdf
Class TripleOrdering
java.lang.Object
org.fcrepo.http.commons.api.rdf.TripleOrdering
- All Implemented Interfaces:
Comparator<org.apache.jena.graph.Triple>
Comparator to sort a list of Quads by subject, predicate, and object
to ensure a consistent order for human-readable output
- Author:
- awoods
-
Constructor Summary
ConstructorsConstructorDescriptionTripleOrdering(org.apache.jena.shared.PrefixMapping prefixMapping) When sorting predicates, take into account the given PrefixMapping -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.jena.graph.Triple left, org.apache.jena.graph.Triple right) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<org.apache.jena.graph.Triple>
-