public class SimpleTriple extends AbstractTriple
Triple interface.SimpleValueFactory,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
SimpleTriple(Resource subject,
IRI predicate,
Value object)
Creates a new Triple with the supplied subject, predicate and object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Value |
getObject() |
IRI |
getPredicate() |
Resource |
getSubject() |
int |
hashCode() |
String |
stringValue() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisResourceprotected SimpleTriple(Resource subject, IRI predicate, Value object)
Note that creating SimpleStatement objects directly via this constructor is not the recommended approach.
Instead, use an instance of ValueFactory to create new Triple objects.
subject - The triple's subject, must not be null.predicate - The triple's predicate, must not be null.object - The triple's object, must not be null.SimpleValueFactory.createTriple(Resource, IRI, Value)public Resource getSubject()
public IRI getPredicate()
public Value getObject()
public String stringValue()
stringValue in interface ValuestringValue in class AbstractTriplepublic String toString()
toString in class AbstractTriplepublic boolean equals(Object o)
equals in interface Tripleequals in class AbstractTriplepublic int hashCode()
hashCode in interface TriplehashCode in class AbstractTripleCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.