net.fortytwo.sesametools
Class ContextInsensitiveStatementComparator

java.lang.Object
  extended by net.fortytwo.sesametools.ContextInsensitiveStatementComparator
All Implemented Interfaces:
Comparator<org.openrdf.model.Statement>

public class ContextInsensitiveStatementComparator
extends Object
implements Comparator<org.openrdf.model.Statement>

Implements a Comparator for OpenRDF Statements using the order Subject->Predicate->Object

Author:
Peter Ansell p_ansell@yahoo.com

Field Summary
static int AFTER
           
static int BEFORE
           
static int EQUALS
           
 
Constructor Summary
ContextInsensitiveStatementComparator()
           
 
Method Summary
 int compare(org.openrdf.model.Statement first, org.openrdf.model.Statement second)
           
 
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
 

Field Detail

BEFORE

public static final int BEFORE
See Also:
Constant Field Values

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

AFTER

public static final int AFTER
See Also:
Constant Field Values
Constructor Detail

ContextInsensitiveStatementComparator

public ContextInsensitiveStatementComparator()
Method Detail

compare

public int compare(org.openrdf.model.Statement first,
                   org.openrdf.model.Statement second)
Specified by:
compare in interface Comparator<org.openrdf.model.Statement>


Copyright © 2013. All Rights Reserved.