Class Measurement

    • Constructor Detail

      • Measurement

        public Measurement()
    • Method Detail

      • getOtherKind

        public String getOtherKind()
      • setOtherKind

        public void setOtherKind​(String otherKind)
      • setRepresentation

        public void setRepresentation​(PrimitiveType representation)
      • getUnit

        public Unit getUnit()
      • setUnit

        public void setUnit​(Unit unit)
      • 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: 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 class AbstractIdentifiable
      • equals

        public boolean equals​(Object obj)
        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 class AbstractIdentifiable