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 theextendedCommitData
record component.private final long
The field for thesequenceNumber
record component.private final OffsetDateTime
The field for thetimestamp
record component. -
Constructor Summary
ConstructorsConstructorDescriptionCommitData
(long sequenceNumber, OffsetDateTime timestamp, Map<String, String> extendedCommitData) Creates an instance of aCommitData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theextendedCommitData
record component.static LuceneService.CommitData
fromUserData
(Map<String, String> userData) final int
hashCode()
Returns a hash code value for this object.long
Returns the value of thesequenceNumber
record component.Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
sequenceNumber
private final long sequenceNumberThe field for thesequenceNumber
record component. -
timestamp
The field for thetimestamp
record component. -
extendedCommitData
The field for theextendedCommitData
record component.
-
-
Constructor Details
-
CommitData
public CommitData(long sequenceNumber, OffsetDateTime timestamp, Map<String, String> extendedCommitData) Creates an instance of aCommitData
record class.- Parameters:
sequenceNumber
- the value for thesequenceNumber
record componenttimestamp
- the value for thetimestamp
record componentextendedCommitData
- the value for theextendedCommitData
record component
-
-
Method Details
-
toUserData
-
fromUserData
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
sequenceNumber
public long sequenceNumber()Returns the value of thesequenceNumber
record component.- Returns:
- the value of the
sequenceNumber
record component
-
timestamp
Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
extendedCommitData
Returns the value of theextendedCommitData
record component.- Returns:
- the value of the
extendedCommitData
record component
-