public interface ImmutableGraph extends Graph
Graph
s may be equal (isomorphic)
even if the set of triples are not.
Implementations MUST be immutable and throw respective exceptions, when add/remove-methods are called.
org.apache.clerezza.rdf.core.impl.AbstractGraph
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Returns true if two graphs are isomorphic
|
int |
hashCode()
Return the sum of the blank-nodes independent hashes of the triples.
|
filter, getImmutableGraph, getLock
add, addAll, clear, contains, containsAll, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
boolean equals(Object obj)
int hashCode()
hashCode
in interface Collection<Triple>
hashCode
in class Object
Copyright © 2015–2022 The Apache Software Foundation. All rights reserved.