|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jrdf.graph.local.NodeComparatorImpl
public final class NodeComparatorImpl
Currently only support simple comparison - either by node id for blank nodes or string comparisons for URIs and Literals.
Constructor Summary | |
---|---|
NodeComparatorImpl(NodeTypeComparator nodeTypeComparator,
BlankNodeComparator blankNodeComparator)
|
Method Summary | |
---|---|
int |
compare(Node o1,
Node 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 NodeComparatorImpl(NodeTypeComparator nodeTypeComparator, BlankNodeComparator blankNodeComparator)
Method Detail |
---|
public int compare(Node o1, Node o2)
compare
in interface Comparator<Node>
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 |