Class JsonLdTripleImpl
java.lang.Object
org.apache.commons.rdf.jsonldjava.JsonLdQuadLikeImpl<BlankNodeOrIRI,IRI,RDFTerm,RDFTerm>
org.apache.commons.rdf.jsonldjava.JsonLdTripleImpl
- All Implemented Interfaces:
QuadLike<RDFTerm>
,Triple
,TripleLike
,JsonLdQuadLike<RDFTerm>
,JsonLdTriple
,JsonLdTripleLike
final class JsonLdTripleImpl
extends JsonLdQuadLikeImpl<BlankNodeOrIRI,IRI,RDFTerm,RDFTerm>
implements JsonLdTriple
-
Constructor Summary
ConstructorsConstructorDescriptionJsonLdTripleImpl
(com.github.jsonldjava.core.RDFDataset.Quad quad, String blankNodePrefix) -
Method Summary
Methods inherited from class org.apache.commons.rdf.jsonldjava.JsonLdQuadLikeImpl
asJsonLdQuad, getGraphName, getObject, getPredicate, getSubject, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.rdf.jsonldjava.JsonLdTripleLike
asJsonLdQuad
Methods inherited from interface org.apache.commons.rdf.api.Triple
getObject, getPredicate, getSubject
-
Constructor Details
-
JsonLdTripleImpl
JsonLdTripleImpl(com.github.jsonldjava.core.RDFDataset.Quad quad, String blankNodePrefix)
-
-
Method Details
-
equals
Description copied from interface:Triple
Check it this Triple is equal to another Triple.Two Triples are equal if and only if their
Triple.getSubject()
,Triple.getPredicate()
andTriple.getObject()
are equal.Implementations MUST also override
Triple.hashCode()
so that two equal Triples produce the same hash code. -
hashCode
public int hashCode()Description copied from interface:Triple
Calculate a hash code for this Triple.The returned hash code MUST be equal to the result of
Objects.hash(Object...)
with the argumentsTriple.getSubject()
,Triple.getPredicate()
,Triple.getObject()
.This method MUST be implemented in conjunction with
Triple.equals(Object)
so that two equalTriple
s produce the same hash code.
-