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 JsonLdQuadLikeImpl
asJsonLdQuad, getGraphName, getObject, getPredicate, getSubject, toStringMethods inherited from interface JsonLdTripleLike
asJsonLdQuadMethods inherited from interface Triple
getObject, getPredicate, getSubject
-
Constructor Details
-
JsonLdTripleImpl
JsonLdTripleImpl(com.github.jsonldjava.core.RDFDataset.Quad quad, String blankNodePrefix)
-
-
Method Details
-
equals
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.
-