public interface Triple extends TripleLike
Triple object in Commons RDF is considered
immutable, that is, over its life time it will have
consistent behaviour for its
equals(Object), and the
instances returned from
getObject() will have consistent
Triple methods are not required to return object
==) instances as long as they are equivalent
RDFTerm.equals(Object). Specialisations of
Triple may provide additional methods that are documented to be
Triple methods are thread-safe, however
specialisations may provide additional methods that are documented to not be
Triple can be used interchangeably across Commons RDF
|Modifier and Type||Method and Description|
Check it this Triple is equal to another Triple.
Calculate a hash code for this Triple.
IRI, which are represented in Commons RDF by the interface
IRIof this triple.
IRI, or a
Literal, which are represented in Commons RDF by the interface
Implementations MUST also override
hashCode() so that two equal
Triples produce the same hash code.
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.