Package org.openmuc.framework.data
Class Record
- java.lang.Object
-
- org.openmuc.framework.data.Record
-
public class Record extends java.lang.Object
A Record may represent a reading or a database entry. Record is immutable. It contains a value, a timestamp, and a flag.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Flag
getFlag()
java.lang.Long
getTimestamp()
Value
getValue()
java.lang.String
toString()
-
-
-
Constructor Detail
-
Record
public Record(Value value, java.lang.Long timestamp)
Creates a valid record.- Parameters:
value
- the value of the recordtimestamp
- the timestamp of the record
-
Record
public Record(Flag flag)
Creates an invalid record with the given flag. The flag may not indicate valid.- Parameters:
flag
- the flag of the invalid record.
-
-