Package org.aksw.jenax.stmt.util
Class QueryParseExceptionComparator
java.lang.Object
org.aksw.jenax.stmt.util.QueryParseExceptionComparator
- All Implemented Interfaces:
Comparator<org.apache.jena.query.QueryParseException>
public class QueryParseExceptionComparator
extends Object
implements Comparator<org.apache.jena.query.QueryParseException>
Compares QueryParseExceptions by their line and column number.
If multiple parsers attempt to parse a sparql statement,
this comparator can be used to detect which parser came farthest.
- Author:
- raven
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(org.apache.jena.query.QueryParseException a, org.apache.jena.query.QueryParseException b) 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
-
QueryParseExceptionComparator
public QueryParseExceptionComparator()
-
-
Method Details
-
compare
public int compare(org.apache.jena.query.QueryParseException a, org.apache.jena.query.QueryParseException b) - Specified by:
comparein interfaceComparator<org.apache.jena.query.QueryParseException>
-