Record Class AbstractDevice.Record
java.lang.Object
java.lang.Record
org.episteme.core.device.AbstractDevice.Record
- All Implemented Interfaces:
Device.Record
- Enclosing class:
AbstractDevice
public static record AbstractDevice.Record(Instant timestamp, Quantity<?> value)
extends Record
implements Device.Record
Represents a single record in the device history.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Quantity<?> getValue()final inthashCode()Returns a hash code value for this object.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Quantity<?> value()Returns the value of thevaluerecord component.
-
Constructor Details
-
Record
-
-
Method Details
-
getTimestamp
- Specified by:
getTimestampin interfaceDevice.Record
-
getValue
- Specified by:
getValuein interfaceDevice.Record
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-