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
Constructors Constructor Description JsonLdTripleImpl(com.github.jsonldjava.core.RDFDataset.Quad quad, java.lang.String blankNodePrefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Check it this Triple is equal to another Triple.inthashCode()Calculate a hash code for this Triple.-
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
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:TripleCheck 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:TripleCalculate 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 equalTriples produce the same hash code.
-
-