java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Triple>public class Triple extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Triple>, java.io.Serializable
Triple, to allow for simplified access to
the properties of a subject-predicate-object triple in this ontology.Triple,
Serialized Form| Constructor | Description |
|---|---|
Triple(org.biojava.nbio.ontology.Triple triple) |
Creates a new
Triple from a given corresponding object from
BioJava. |
| Modifier and Type | Method | Description |
|---|---|---|
Triple |
clone() |
|
int |
compareTo(Triple triple) |
|
boolean |
equals(java.lang.Object o) |
|
Term |
getObject() |
Returns the object of this
Triple. |
Term |
getPredicate() |
Returns the predicate of this
Triple. |
Term |
getSubject() |
Returns the subject of this
Triple. |
org.biojava.nbio.ontology.Triple |
getTriple() |
Grants access to the original BioJava
Triple. |
java.lang.String |
toString() |
public Triple(org.biojava.nbio.ontology.Triple triple)
Triple from a given corresponding object from
BioJava.triple - public Triple clone()
clone in class java.lang.Objectpublic int compareTo(Triple triple)
compareTo in interface java.lang.Comparable<Triple>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic Term getObject()
Triple.Triple.public Term getPredicate()
Triple.Triple.public Term getSubject()
Triple.Triple.public org.biojava.nbio.ontology.Triple getTriple()
Triple.Triple.public java.lang.String toString()
toString in class java.lang.Object