Record Class SimpleDataRange
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.directories.cache.SimpleDataRange
- Record Components:
minArchiveTime- minimale ArchivzeitmaxArchiveTime- maximale ArchivzeitminDataTime- minimale DatenzeitmaxDataTime- maximale DatenzeitminDataIndex- minimaler DatenindexmaxDataIndex- 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 Summary
ConstructorsConstructorDescriptionSimpleDataRange(long minArchiveTime, long maxArchiveTime, long minDataTime, long maxDataTime, long minDataIndex, long maxDataIndex) Creates an instance of aSimpleDataRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxArchiveTimerecord component.longReturns the value of themaxDataIndexrecord component.longReturns the value of themaxDataTimerecord component.longReturns the value of theminArchiveTimerecord component.longReturns the value of theminDataIndexrecord component.longReturns the value of theminDataTimerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SimpleDataRange
public SimpleDataRange(long minArchiveTime, long maxArchiveTime, long minDataTime, long maxDataTime, long minDataIndex, long maxDataIndex) Creates an instance of aSimpleDataRangerecord class.- Parameters:
minArchiveTime- the value for theminArchiveTimerecord componentmaxArchiveTime- the value for themaxArchiveTimerecord componentminDataTime- the value for theminDataTimerecord componentmaxDataTime- the value for themaxDataTimerecord componentminDataIndex- the value for theminDataIndexrecord componentmaxDataIndex- the value for themaxDataIndexrecord 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. All components in this record class are compared with '=='. -
minArchiveTime
public long minArchiveTime()Returns the value of theminArchiveTimerecord component.- Specified by:
minArchiveTimein interfaceValidDataRange- Returns:
- the value of the
minArchiveTimerecord component
-
maxArchiveTime
public long maxArchiveTime()Returns the value of themaxArchiveTimerecord component.- Specified by:
maxArchiveTimein interfaceValidDataRange- Returns:
- the value of the
maxArchiveTimerecord component
-
minDataTime
public long minDataTime()Returns the value of theminDataTimerecord component.- Specified by:
minDataTimein interfaceValidDataRange- Returns:
- the value of the
minDataTimerecord component
-
maxDataTime
public long maxDataTime()Returns the value of themaxDataTimerecord component.- Specified by:
maxDataTimein interfaceValidDataRange- Returns:
- the value of the
maxDataTimerecord component
-
minDataIndex
public long minDataIndex()Returns the value of theminDataIndexrecord component.- Specified by:
minDataIndexin interfaceValidDataRange- Returns:
- the value of the
minDataIndexrecord component
-
maxDataIndex
public long maxDataIndex()Returns the value of themaxDataIndexrecord component.- Specified by:
maxDataIndexin interfaceValidDataRange- Returns:
- the value of the
maxDataIndexrecord component
-