Package org.topbraid.shacl.util
Class OrderComparator
- java.lang.Object
-
- org.topbraid.shacl.util.OrderComparator
-
- All Implemented Interfaces:
Comparator<org.apache.jena.rdf.model.Resource>
public class OrderComparator extends Object implements Comparator<org.apache.jena.rdf.model.Resource>
A Comparator that uses sh:order triples of the given resource in ascending order (defaulting to 0).- Author:
- Holger Knublauch
-
-
Constructor Summary
Constructors Constructor Description OrderComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.apache.jena.rdf.model.Resource subject1, org.apache.jena.rdf.model.Resource subject2)static OrderComparatorget()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
get
public static OrderComparator get()
-
compare
public int compare(org.apache.jena.rdf.model.Resource subject1, org.apache.jena.rdf.model.Resource subject2)- Specified by:
comparein interfaceComparator<org.apache.jena.rdf.model.Resource>
-
-