|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.global.GroundedTripleComparatorImpl
public class GroundedTripleComparatorImpl
A different implementation of TripleComparator. Where the number of blank nodes in a triple makes it less than triples without blank nodes. Triples with the same number of blank nodes are then compared by node type.
Constructor Summary | |
---|---|
GroundedTripleComparatorImpl(TripleComparator newTripleComparator)
|
Method Summary | |
---|---|
int |
compare(Triple o1,
Triple o2)
|
void |
visitBlankNode(BlankNode blankNode)
Visit blank node. |
void |
visitLiteral(Literal literal)
Visit Literal. |
void |
visitNode(Node node)
Visit node. |
void |
visitResource(Resource resource)
Visit Resource. |
void |
visitURIReference(URIReference uriReference)
Visit URI Reference. |
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 |
Constructor Detail |
---|
public GroundedTripleComparatorImpl(TripleComparator newTripleComparator)
Method Detail |
---|
public int compare(Triple o1, Triple o2)
compare
in interface Comparator<Triple>
public void visitBlankNode(BlankNode blankNode)
TypedNodeVisitor
visitBlankNode
in interface TypedNodeVisitor
blankNode
- the blank node to visit.public void visitURIReference(URIReference uriReference)
TypedNodeVisitor
visitURIReference
in interface TypedNodeVisitor
uriReference
- the URI Reference to visit.public void visitLiteral(Literal literal)
TypedNodeVisitor
visitLiteral
in interface TypedNodeVisitor
literal
- the Literal to visit.public void visitNode(Node node)
TypedNodeVisitor
visitNode
in interface TypedNodeVisitor
node
- the node to visit.public void visitResource(Resource resource)
TypedNodeVisitor
visitResource
in interface TypedNodeVisitor
resource
- the node to visit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |