public class Triple extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<Triple>, java.io.Serializable
org.biojava.nbio.ontology.Triple
, to allow for simplified access to
the properties of a subject-predicate-object triple in this ontology.org.biojava.nbio.ontology.Triple
,
Serialized FormModifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
Generated serial version identifier.
|
private org.biojava.nbio.ontology.Triple |
triple
The BioJava
org.biojava.nbio.ontology.Triple . |
Constructor and Description |
---|
Triple(org.biojava.nbio.ontology.Triple triple)
Creates a new
Triple from a given corresponding object from
BioJava. |
Modifier and Type | Method and 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
org.biojava.nbio.ontology.Triple . |
java.lang.String |
toString() |
private static final long serialVersionUID
private org.biojava.nbio.ontology.Triple triple
org.biojava.nbio.ontology.Triple
.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.Object
public int compareTo(Triple triple)
compareTo
in interface java.lang.Comparable<Triple>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Term getObject()
Triple
.Triple
.public Term getPredicate()
Triple
.Triple
.public Term getSubject()
Triple
.Triple
.public org.biojava.nbio.ontology.Triple getTriple()
org.biojava.nbio.ontology.Triple
.org.biojava.nbio.ontology.Triple
.public java.lang.String toString()
toString
in class java.lang.Object