Class GeneCoexpressionTestedIn

java.lang.Object
ubic.gemma.model.analysis.expression.coexpression.IdArray
ubic.gemma.model.analysis.expression.coexpression.GeneCoexpressionTestedIn

public class GeneCoexpressionTestedIn extends IdArray
Tracks the datasets in which coexpression for a gene has been tested. Determining if two genes were tested together requires using the and() method.
Author:
Paul
  • Constructor Details

    • GeneCoexpressionTestedIn

      public GeneCoexpressionTestedIn()
    • GeneCoexpressionTestedIn

      public GeneCoexpressionTestedIn(Long geneId)
  • Method Details

    • addEntity

      public void addEntity(Long ds)
      Description copied from class: IdArray
      Add the data set to the list of those which are in the array. If it is already included, nothing will change.
      Overrides:
      addEntity in class IdArray
      Parameters:
      ds - this is cast to an int
    • getNumIds

      public int getNumIds()
      Overrides:
      getNumIds in class IdArray
      Returns:
      how many datasets there are
    • removeEntity

      public void removeEntity(Long ds)
      Overrides:
      removeEntity in class IdArray
      Parameters:
      ds - ID of dataset to remove. If it isn't here, has no effect.
    • toString

      public String toString()
      Overrides:
      toString in class IdArray
    • getGeneId

      public Long getGeneId()
    • getNumDatasetsTestedIn

      public int getNumDatasetsTestedIn()
    • setNumDatasetsTestedIn

      public void setNumDatasetsTestedIn(int numDatasetsTestedIn)
      Used for serializing/marshalling only. Do not set this value directly otherwise.
      Parameters:
      numDatasetsTestedIn - the new value
    • hashCode

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

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