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 aDataIndexSequenceSpecification
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 themaximumIndex
record component.long
Returns the value of theminimumIndex
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
DataIndexSequenceSpecification
public DataIndexSequenceSpecification(long minimumIndex, long maximumIndex) Creates an instance of aDataIndexSequenceSpecification
record class.- Parameters:
minimumIndex
- the value for theminimumIndex
record componentmaximumIndex
- the value for themaximumIndex
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 '=='. -
minimumIndex
public long minimumIndex()Returns the value of theminimumIndex
record component.- Returns:
- the value of the
minimumIndex
record component
-
maximumIndex
public long maximumIndex()Returns the value of themaximumIndex
record component.- Returns:
- the value of the
maximumIndex
record component
-