Package ubic.gemma.model.genome
Class Chromosome
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.genome.Chromosome
-
- All Implemented Interfaces:
Identifiable
public class Chromosome extends AbstractIdentifiable
Immutable representation of a chromosome
-
-
Constructor Summary
Constructors Constructor Description Chromosome()
No-arg constructor added to satisfy javabean contractChromosome(String name, ExternalDatabase assemblyDatabase, BioSequence sequence, Taxon taxon)
Chromosome(String name, Taxon taxon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Important note: Two objects with the same class and non-null ID must be considered equal.ExternalDatabase
getAssemblyDatabase()
String
getName()
BioSequence
getSequence()
Taxon
getTaxon()
int
hashCode()
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.String
toString()
-
Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
-
-
-
Constructor Detail
-
Chromosome
public Chromosome()
No-arg constructor added to satisfy javabean contract
-
Chromosome
public Chromosome(String name, ExternalDatabase assemblyDatabase, BioSequence sequence, Taxon taxon)
-
-
Method Detail
-
getName
public String getName()
-
getAssemblyDatabase
public ExternalDatabase getAssemblyDatabase()
- Returns:
- The database where we have the assesmbly of the chromosome, such as the GoldenPath.
-
getSequence
public BioSequence getSequence()
- Returns:
- The sequence of the chromosome. This is typically going to be just a reference to the sequence in an external database.
-
getTaxon
public Taxon getTaxon()
-
hashCode
public int hashCode()
Description copied from class:AbstractIdentifiable
Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCode
in classAbstractIdentifiable
-
equals
public boolean equals(Object object)
Description copied from class:AbstractIdentifiable
Important note: Two objects with the same class and non-null ID must be considered equal. If one or both IDs are nulls, the rest of the state can be used to determine equality.- Specified by:
equals
in classAbstractIdentifiable
-
toString
public String toString()
- Overrides:
toString
in classAbstractIdentifiable
-
-