Record Class DataIndexSequenceSpecification
java.lang.Object
java.lang.Record
de.bsvrz.ars.ars.persistence.sequence.DataIndexSequenceSpecification
- Record Components:
minimumIndex- Minimum-DatenindexmaximumIndex- Maximum-Datenindex
- All Implemented Interfaces:
SequenceSpecification
public record DataIndexSequenceSpecification(long minimumIndex, long maximumIndex)
extends Record
implements SequenceSpecification
Spezifikation für einen Protokollauszug nach Datenindex
-
Constructor Summary
ConstructorsConstructorDescriptionDataIndexSequenceSpecification(long minimumIndex, long maximumIndex) Creates an instance of aDataIndexSequenceSpecificationrecord 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 themaximumIndexrecord component.longReturns the value of theminimumIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DataIndexSequenceSpecification
public DataIndexSequenceSpecification(long minimumIndex, long maximumIndex) Creates an instance of aDataIndexSequenceSpecificationrecord class.- Parameters:
minimumIndex- the value for theminimumIndexrecord componentmaximumIndex- the value for themaximumIndexrecord 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 '=='. -
minimumIndex
public long minimumIndex()Returns the value of theminimumIndexrecord component.- Returns:
- the value of the
minimumIndexrecord component
-
maximumIndex
public long maximumIndex()Returns the value of themaximumIndexrecord component.- Returns:
- the value of the
maximumIndexrecord component
-