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 aSimpleDataRange
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.long
Returns the value of themaxArchiveTime
record component.long
Returns the value of themaxDataIndex
record component.long
Returns the value of themaxDataTime
record component.long
Returns the value of theminArchiveTime
record component.long
Returns the value of theminDataIndex
record component.long
Returns the value of theminDataTime
record component.final String
toString()
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 aSimpleDataRange
record class.- Parameters:
minArchiveTime
- the value for theminArchiveTime
record componentmaxArchiveTime
- the value for themaxArchiveTime
record componentminDataTime
- the value for theminDataTime
record componentmaxDataTime
- the value for themaxDataTime
record componentminDataIndex
- the value for theminDataIndex
record componentmaxDataIndex
- the value for themaxDataIndex
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. All components in this record class are compared with '=='. -
minArchiveTime
public long minArchiveTime()Returns the value of theminArchiveTime
record component.- Specified by:
minArchiveTime
in interfaceValidDataRange
- Returns:
- the value of the
minArchiveTime
record component
-
maxArchiveTime
public long maxArchiveTime()Returns the value of themaxArchiveTime
record component.- Specified by:
maxArchiveTime
in interfaceValidDataRange
- Returns:
- the value of the
maxArchiveTime
record component
-
minDataTime
public long minDataTime()Returns the value of theminDataTime
record component.- Specified by:
minDataTime
in interfaceValidDataRange
- Returns:
- the value of the
minDataTime
record component
-
maxDataTime
public long maxDataTime()Returns the value of themaxDataTime
record component.- Specified by:
maxDataTime
in interfaceValidDataRange
- Returns:
- the value of the
maxDataTime
record component
-
minDataIndex
public long minDataIndex()Returns the value of theminDataIndex
record component.- Specified by:
minDataIndex
in interfaceValidDataRange
- Returns:
- the value of the
minDataIndex
record component
-
maxDataIndex
public long maxDataIndex()Returns the value of themaxDataIndex
record component.- Specified by:
maxDataIndex
in interfaceValidDataRange
- Returns:
- the value of the
maxDataIndex
record component
-