Package ch.rswk.meta.engine
Record Class LuceneService.CommitData
java.lang.Object
java.lang.Record
ch.rswk.meta.engine.LuceneService.CommitData
- Enclosing class:
LuceneService
public static record LuceneService.CommitData(long sequenceNumber, OffsetDateTime timestamp, Map<String,String> extendedCommitData)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theextendedCommitDatarecord component.private final longThe field for thesequenceNumberrecord component.private final OffsetDateTimeThe field for thetimestamprecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCommitData(long sequenceNumber, OffsetDateTime timestamp, Map<String, String> extendedCommitData) Creates an instance of aCommitDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextendedCommitDatarecord component.static LuceneService.CommitDatafromUserData(Map<String, String> userData) final inthashCode()Returns a hash code value for this object.longReturns the value of thesequenceNumberrecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sequenceNumber
private final long sequenceNumberThe field for thesequenceNumberrecord component. -
timestamp
The field for thetimestamprecord component. -
extendedCommitData
-
-
Constructor Details
-
CommitData
public CommitData(long sequenceNumber, OffsetDateTime timestamp, Map<String, String> extendedCommitData) Creates an instance of aCommitDatarecord class.- Parameters:
sequenceNumber- the value for thesequenceNumberrecord componenttimestamp- the value for thetimestamprecord componentextendedCommitData- the value for theextendedCommitDatarecord component
-
-
Method Details
-
fromUserData
-
toUserData
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
sequenceNumber
public long sequenceNumber()Returns the value of thesequenceNumberrecord component.- Returns:
- the value of the
sequenceNumberrecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
extendedCommitData
-