Class GenericCellLevelCharacteristics
- java.lang.Object
-
- ubic.gemma.model.common.AbstractIdentifiable
-
- ubic.gemma.model.expression.bioAssayData.GenericCellLevelCharacteristics
-
- All Implemented Interfaces:
Identifiable
,CellLevelCharacteristics
public class GenericCellLevelCharacteristics extends AbstractIdentifiable implements CellLevelCharacteristics
Generic cell-level characteristics.For cell types, use
CellTypeAssignment
instead.This is not meant to be used directly, prefer
CellLevelCharacteristics.Factory.newInstance(java.util.List<ubic.gemma.model.common.description.Characteristic>, int[])
for creating cell-level characteristics orCellTypeAssignment
for cell types.- Author:
- poirigui
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ubic.gemma.model.expression.bioAssayData.CellLevelCharacteristics
CellLevelCharacteristics.Factory
-
-
Field Summary
-
Fields inherited from interface ubic.gemma.model.expression.bioAssayData.CellLevelCharacteristics
UNKNOWN_CHARACTERISTIC
-
-
Constructor Summary
Constructors Constructor Description GenericCellLevelCharacteristics()
-
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.Characteristic
getCharacteristic(int cellIndex)
Obtain the characteristic assigned to a given cell.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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface ubic.gemma.model.expression.bioAssayData.CellLevelCharacteristics
getCharacteristics, getIndices, getNumberOfAssignedCells, getNumberOfCharacteristics
-
Methods inherited from interface ubic.gemma.model.common.Identifiable
getId
-
-
-
-
Method Detail
-
getCharacteristic
@Nullable public Characteristic getCharacteristic(int cellIndex)
Description copied from interface:CellLevelCharacteristics
Obtain the characteristic assigned to a given cell.- Specified by:
getCharacteristic
in interfaceCellLevelCharacteristics
- Returns:
- the characteristic or
null
if the cell is assigned toCellLevelCharacteristics.UNKNOWN_CHARACTERISTIC
.
-
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
-
-