Package org.forester.go
Class BasicGoRelationship
- java.lang.Object
-
- org.forester.go.BasicGoRelationship
-
- All Implemented Interfaces:
java.lang.Comparable<GoRelationship>,GoRelationship
public class BasicGoRelationship extends java.lang.Object implements GoRelationship
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.forester.go.GoRelationship
GoRelationship.Type
-
-
Field Summary
-
Fields inherited from interface org.forester.go.GoRelationship
HAS_PART_STR, NEGATIVELY_REGULATES_STR, OCCURS_IN_STR, PART_OF_STR, POSITIVELY_REGULATES_STR, REGULATES_STR
-
-
Constructor Summary
Constructors Constructor Description BasicGoRelationship(java.lang.String s)BasicGoRelationship(java.lang.String type, java.lang.String go_id)BasicGoRelationship(GoRelationship.Type type, GoId go_id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(GoRelationship rel)booleanequals(java.lang.Object o)Based on value and type.GoIdgetGoId()GoRelationship.TypegetType()java.lang.StringtoString()
-
-
-
Constructor Detail
-
BasicGoRelationship
public BasicGoRelationship(java.lang.String s)
-
BasicGoRelationship
public BasicGoRelationship(java.lang.String type, java.lang.String go_id)
-
BasicGoRelationship
public BasicGoRelationship(GoRelationship.Type type, GoId go_id)
-
-
Method Detail
-
compareTo
public int compareTo(GoRelationship rel)
- Specified by:
compareToin interfacejava.lang.Comparable<GoRelationship>
-
equals
public boolean equals(java.lang.Object o)
Based on value and type.- Overrides:
equalsin classjava.lang.Object
-
getGoId
public GoId getGoId()
- Specified by:
getGoIdin interfaceGoRelationship
-
getType
public GoRelationship.Type getType()
- Specified by:
getTypein interfaceGoRelationship
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-