Record Class SimpleDataRange

java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.directories.cache.SimpleDataRange
Record Components:
minArchiveTime - minimale Archivzeit
maxArchiveTime - maximale Archivzeit
minDataTime - minimale Datenzeit
maxDataTime - maximale Datenzeit
minDataIndex - minimaler Datenindex
maxDataIndex - maximalen Datenindex
All Implemented Interfaces:
DataRange, ValidDataRange

public record SimpleDataRange(long minArchiveTime, long maxArchiveTime, long minDataTime, long maxDataTime, long minDataIndex, long maxDataIndex) extends Record implements ValidDataRange
Immutable-Implementierung von ValidDataRange
  • Constructor Details

    • SimpleDataRange

      public SimpleDataRange(long minArchiveTime, long maxArchiveTime, long minDataTime, long maxDataTime, long minDataIndex, long maxDataIndex)
      Creates an instance of a SimpleDataRange record class.
      Parameters:
      minArchiveTime - the value for the minArchiveTime record component
      maxArchiveTime - the value for the maxArchiveTime record component
      minDataTime - the value for the minDataTime record component
      maxDataTime - the value for the maxDataTime record component
      minDataIndex - the value for the minDataIndex record component
      maxDataIndex - the value for the maxDataIndex record component
  • Method Details

    • toString

      public final 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. All components in this record class 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.
    • minArchiveTime

      public long minArchiveTime()
      Returns the value of the minArchiveTime record component.
      Specified by:
      minArchiveTime in interface ValidDataRange
      Returns:
      the value of the minArchiveTime record component
    • maxArchiveTime

      public long maxArchiveTime()
      Returns the value of the maxArchiveTime record component.
      Specified by:
      maxArchiveTime in interface ValidDataRange
      Returns:
      the value of the maxArchiveTime record component
    • minDataTime

      public long minDataTime()
      Returns the value of the minDataTime record component.
      Specified by:
      minDataTime in interface ValidDataRange
      Returns:
      the value of the minDataTime record component
    • maxDataTime

      public long maxDataTime()
      Returns the value of the maxDataTime record component.
      Specified by:
      maxDataTime in interface ValidDataRange
      Returns:
      the value of the maxDataTime record component
    • minDataIndex

      public long minDataIndex()
      Returns the value of the minDataIndex record component.
      Specified by:
      minDataIndex in interface ValidDataRange
      Returns:
      the value of the minDataIndex record component
    • maxDataIndex

      public long maxDataIndex()
      Returns the value of the maxDataIndex record component.
      Specified by:
      maxDataIndex in interface ValidDataRange
      Returns:
      the value of the maxDataIndex record component