Class Gene2GeneAssociation

java.lang.Object
ubic.gemma.model.association.Gene2GeneAssociation
All Implemented Interfaces:
Identifiable

public abstract class Gene2GeneAssociation extends Object implements Identifiable
Entity representing a relationship between two genes. The designation of "first" and "second" gene is by default completely arbitrary, there is no direction to the association defined by this. However, a direction can be imposed by the implementing subclass. Ideally subclasses are immutable, but this is not always possible. It can be done when the data is never updated but just loaded in anew.
Author:
paul
  • Constructor Details

    • Gene2GeneAssociation

      public Gene2GeneAssociation()
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getFirstGene

      public Gene getFirstGene()
    • getId

      public Long getId()
      Description copied from interface: Identifiable
      Obtain the identifier of the object.
      Specified by:
      getId in interface Identifiable
    • getSecondGene

      public Gene getSecondGene()