com.cumulocity.model.measurement
Class Measurement
java.lang.Object
org.svenson.AbstractDynamicProperties
com.cumulocity.model.JSONBase
com.cumulocity.model.Document<GId>
com.cumulocity.model.measurement.Measurement
- All Implemented Interfaces:
- org.svenson.DynamicProperties
public class Measurement
- extends Document<GId>
Represents a measurement document.
Refers to the source of the measurements, the time at which the measurements were taken
and holds the measurements themselves.
Methods inherited from class com.cumulocity.model.Document |
get, get, getFragment, getId, getInternalId, getRevision, set, set, set, setId, setInternalId, setRevision |
Methods inherited from class org.svenson.AbstractDynamicProperties |
getProperty, propertyNames, setProperty |
Measurement
public Measurement()
setType
public void setType(String type)
getType
public String getType()
getTime
@JSONProperty(value="time",
ignoreIfNull=true)
@JSONConverter(type=DateConverter.class)
public Date getTime()
setTime
public void setTime(Date time)
getSource
@JSONProperty(value="source",
ignoreIfNull=false)
@JSONConverter(type=IDTypeConverter.class)
public ID getSource()
setSource
public void setSource(ID source)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Document<GId>
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Document<GId>
toString
public String toString()
- Overrides:
toString
in class Document<GId>
Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.