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 int
compareTo(GoRelationship rel)
boolean
equals(java.lang.Object o)
Based on value and type.GoId
getGoId()
GoRelationship.Type
getType()
java.lang.String
toString()
-
-
-
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:
compareTo
in interfacejava.lang.Comparable<GoRelationship>
-
equals
public boolean equals(java.lang.Object o)
Based on value and type.- Overrides:
equals
in classjava.lang.Object
-
getGoId
public GoId getGoId()
- Specified by:
getGoId
in interfaceGoRelationship
-
getType
public GoRelationship.Type getType()
- Specified by:
getType
in interfaceGoRelationship
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-