Package net.solarnetwork.domain.datum
Class BasicStreamDatum
java.lang.Object
net.solarnetwork.domain.datum.BasicStreamDatum
- All Implemented Interfaces:
Serializable,Cloneable,StreamDatum
- Direct Known Subclasses:
BasicAggregateStreamDatum
Basic implementation of
StreamDatum.- Since:
- 1.72
- Version:
- 1.0
- Author:
- matt
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBasicStreamDatum(UUID streamId, Instant timestamp, DatumProperties properties) Constructor. -
Method Summary
-
Constructor Details
-
BasicStreamDatum
Constructor.- Parameters:
streamId- the stream IDtimestamp- the timestampproperties- the optional samples- Throws:
IllegalArgumentException- ifstreamIdortimestampare null
-
-
Method Details
-
clone
-
toString
-
hashCode
public int hashCode() -
equals
-
getTimestamp
Description copied from interface:StreamDatumGet the associated timestamp of this datum.This value represents the point in time the properties associated with this datum were observed, collected, inferred, predicted, etc.
- Specified by:
getTimestampin interfaceStreamDatum- Returns:
- the timestamp for this datum
-
getStreamId
Description copied from interface:StreamDatumGet the unique ID of the stream this datum is a part of.- Specified by:
getStreamIdin interfaceStreamDatum- Returns:
- the stream ID
-
getProperties
Description copied from interface:StreamDatumGet the properties associated with this datum.- Specified by:
getPropertiesin interfaceStreamDatum- Returns:
- the properties
-