Class Measurement
java.lang.Object
ubic.gemma.model.common.AbstractIdentifiable
ubic.gemma.model.common.measurement.Measurement
- All Implemented Interfaces:
Identifiable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanImportant note: Two objects with the same class and non-null ID must be considered equal.getType()getUnit()getValue()doubleRetrieve the value of this measurement as a double.floatintlonginthashCode()Important note: Never use the ID in the hashCode() implementation since it can be assigned when the object is persisted.voidsetKindCV(MeasurementKind kindCV) voidsetOtherKind(String otherKind) voidsetRepresentation(PrimitiveType representation) voidsetType(MeasurementType type) voidvoidvoidsetValueAsDouble(double value) toString()Methods inherited from class ubic.gemma.model.common.AbstractIdentifiable
getId, setId
-
Field Details
-
COMPARATOR
-
-
Constructor Details
-
Measurement
public Measurement()
-
-
Method Details
-
getKindCV
-
setKindCV
-
getOtherKind
-
setOtherKind
-
getRepresentation
-
setRepresentation
-
getType
-
setType
-
getUnit
-
setUnit
-
getValue
-
setValue
-
getValueAsInt
public int getValueAsInt() -
getValueAsLong
public long getValueAsLong() -
getValueAsFloat
public float getValueAsFloat() -
getValueAsDouble
public double getValueAsDouble()Retrieve the value of this measurement as a double.Any missing value (i.e. null) will be returned as a
Double.NaN. -
setValueAsDouble
public void setValueAsDouble(double value) -
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
-