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 aSimpleArchiveDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongarcTime()Returns the value of thearcTimerecord component.booleanReturns the value of thecompressedrecord component.longdataIdx()Returns the value of thedataIdxrecord component.de.bsvrz.dav.daf.main.archive.ArchiveDataKinddataKind()Returns the value of thedataKindrecord component.de.bsvrz.dav.daf.main.DataStateReturns the value of thedataStaterecord component.longdataTime()Returns the value of thedataTimerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]rawData()Returns the value of therawDatarecord 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 aSimpleArchiveDatarecord class.- Parameters:
arcTime- the value for thearcTimerecord componentdataTime- the value for thedataTimerecord componentdataIdx- the value for thedataIdxrecord componentdataKind- the value for thedataKindrecord componentdataState- the value for thedataStaterecord componentcompressed- the value for thecompressedrecord componentrawData- the value for therawDatarecord 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 thearcTimerecord component.- Returns:
- the value of the
arcTimerecord component
-
dataTime
public long dataTime()Returns the value of thedataTimerecord component.- Returns:
- the value of the
dataTimerecord component
-
dataIdx
public long dataIdx()Returns the value of thedataIdxrecord component.- Returns:
- the value of the
dataIdxrecord component
-
dataKind
public de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind()Returns the value of thedataKindrecord component.- Returns:
- the value of the
dataKindrecord component
-
dataState
public de.bsvrz.dav.daf.main.DataState dataState()Returns the value of thedataStaterecord component.- Returns:
- the value of the
dataStaterecord component
-
compressed
public boolean compressed()Returns the value of thecompressedrecord component.- Returns:
- the value of the
compressedrecord component
-
rawData
@Nullable public byte[] rawData()Returns the value of therawDatarecord component.- Returns:
- the value of the
rawDatarecord component
-