Package de.bsvrz.ars.ars.mgmt.tasks
Record Class SimpleArchiveData
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.mgmt.tasks.SimpleArchiveData
- Record Components:
arcTime
- Zeitstempel / DatenindexdataKind
- DatensatzartdataState
- Zustand des Datensatzes (Datensatztyp).rawData
- serialisierter Datensatzcompressed
- komprimiert?
public record SimpleArchiveData(long arcTime, long dataTime, long dataIdx, de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind, de.bsvrz.dav.daf.main.DataState dataState, boolean compressed, byte[] rawData)
extends Record
Klasse, die einen Archivdatensatz mit den zugehörigen Zeitstempeln und Datenindex kapselt.
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleArchiveData
(long arcTime, long dataTime, long dataIdx, de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind, de.bsvrz.dav.daf.main.DataState dataState, boolean compressed, byte[] rawData) Creates an instance of aSimpleArchiveData
record class. -
Method Summary
Modifier and TypeMethodDescriptionlong
arcTime()
Returns the value of thearcTime
record component.boolean
Returns the value of thecompressed
record component.long
dataIdx()
Returns the value of thedataIdx
record component.de.bsvrz.dav.daf.main.archive.ArchiveDataKind
dataKind()
Returns the value of thedataKind
record component.de.bsvrz.dav.daf.main.DataState
Returns the value of thedataState
record component.long
dataTime()
Returns the value of thedataTime
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.byte[]
rawData()
Returns the value of therawData
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
SimpleArchiveData
public SimpleArchiveData(long arcTime, long dataTime, long dataIdx, de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind, de.bsvrz.dav.daf.main.DataState dataState, boolean compressed, @Nullable byte[] rawData) Creates an instance of aSimpleArchiveData
record class.- Parameters:
arcTime
- the value for thearcTime
record componentdataTime
- the value for thedataTime
record componentdataIdx
- the value for thedataIdx
record componentdataKind
- the value for thedataKind
record componentdataState
- the value for thedataState
record componentcompressed
- the value for thecompressed
record componentrawData
- the value for therawData
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
arcTime
public long arcTime()Returns the value of thearcTime
record component.- Returns:
- the value of the
arcTime
record component
-
dataTime
public long dataTime()Returns the value of thedataTime
record component.- Returns:
- the value of the
dataTime
record component
-
dataIdx
public long dataIdx()Returns the value of thedataIdx
record component.- Returns:
- the value of the
dataIdx
record component
-
dataKind
public de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind()Returns the value of thedataKind
record component.- Returns:
- the value of the
dataKind
record component
-
dataState
public de.bsvrz.dav.daf.main.DataState dataState()Returns the value of thedataState
record component.- Returns:
- the value of the
dataState
record component
-
compressed
public boolean compressed()Returns the value of thecompressed
record component.- Returns:
- the value of the
compressed
record component
-
rawData
@Nullable public byte[] rawData()Returns the value of therawData
record component.- Returns:
- the value of the
rawData
record component
-