Record Class SimpleArchiveData

java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.mgmt.tasks.SimpleArchiveData
Record Components:
arcTime - Zeitstempel / Datenindex
dataKind - Datensatzart
dataState - Zustand des Datensatzes (Datensatztyp).
rawData - serialisierter Datensatz
compressed - 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

    Constructors
    Constructor
    Description
    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)
    Creates an instance of a SimpleArchiveData record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the arcTime record component.
    boolean
    Returns the value of the compressed record component.
    long
    Returns the value of the dataIdx record component.
    de.bsvrz.dav.daf.main.archive.ArchiveDataKind
    Returns the value of the dataKind record component.
    de.bsvrz.dav.daf.main.DataState
    Returns the value of the dataState record component.
    long
    Returns the value of the dataTime record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    byte[]
    Returns the value of the rawData record component.
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a SimpleArchiveData record class.
      Parameters:
      arcTime - the value for the arcTime record component
      dataTime - the value for the dataTime record component
      dataIdx - the value for the dataIdx record component
      dataKind - the value for the dataKind record component
      dataState - the value for the dataState record component
      compressed - the value for the compressed record component
      rawData - the value for the rawData record component
  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • arcTime

      public long arcTime()
      Returns the value of the arcTime record component.
      Returns:
      the value of the arcTime record component
    • dataTime

      public long dataTime()
      Returns the value of the dataTime record component.
      Returns:
      the value of the dataTime record component
    • dataIdx

      public long dataIdx()
      Returns the value of the dataIdx record component.
      Returns:
      the value of the dataIdx record component
    • dataKind

      public de.bsvrz.dav.daf.main.archive.ArchiveDataKind dataKind()
      Returns the value of the dataKind record component.
      Returns:
      the value of the dataKind record component
    • dataState

      public de.bsvrz.dav.daf.main.DataState dataState()
      Returns the value of the dataState record component.
      Returns:
      the value of the dataState record component
    • compressed

      public boolean compressed()
      Returns the value of the compressed record component.
      Returns:
      the value of the compressed record component
    • rawData

      @Nullable public byte[] rawData()
      Returns the value of the rawData record component.
      Returns:
      the value of the rawData record component