Package ubic.gemma.model.genome
Class Chromosome
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.genome.Chromosome
- All Implemented Interfaces:
Identifiable
Immutable representation of a chromosome
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor added to satisfy javabean contractChromosome(String name, ExternalDatabase assemblyDatabase, BioSequence sequence, Taxon taxon) Chromosome(String name, Taxon taxon) -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.getName()getTaxon()inthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.toString()Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
Constructor Details
-
Chromosome
public Chromosome()No-arg constructor added to satisfy javabean contract -
Chromosome
-
Chromosome
public Chromosome(String name, ExternalDatabase assemblyDatabase, BioSequence sequence, Taxon taxon)
-
-
Method Details
-
getName
-
getAssemblyDatabase
- Returns:
- The database where we have the assesmbly of the chromosome, such as the GoldenPath.
-
getSequence
- Returns:
- The sequence of the chromosome. This is typically going to be just a reference to the sequence in an external database.
-
getTaxon
-
hashCode
public int hashCode()Description copied from class:AbstractIdentifiableImportant note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.- Specified by:
hashCodein classAbstractIdentifiable
-
equals
Description copied from class:AbstractIdentifiableImportant 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:
equalsin classAbstractIdentifiable
-
toString
- Overrides:
toStringin classAbstractIdentifiable
-