Record Class JournalPosition
java.lang.Object
java.lang.Record
io.debezium.ibmi.db2.journal.retrieve.JournalPosition
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BigIntegerThe field for theoffsetrecord component.private final JournalReceiverThe field for thereceiverrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJournalPosition(JournalPosition position) JournalPosition(BigInteger offset, JournalReceiver receiver) Creates an instance of aJournalPositionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic JournalPositionendPosition(DetailedJournalReceiver details) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offset()Returns the value of theoffsetrecord component.receiver()Returns the value of thereceiverrecord component.static JournalPositionstartPosition(DetailedJournalReceiver details) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
offset
The field for theoffsetrecord component. -
receiver
The field for thereceiverrecord component.
-
-
Constructor Details
-
JournalPosition
-
JournalPosition
Creates an instance of aJournalPositionrecord class.- Parameters:
offset- the value for theoffsetrecord componentreceiver- the value for thereceiverrecord component
-
-
Method Details
-
endPosition
-
startPosition
-
getOffset
-
getReceiver
-
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 withObjects::equals(Object,Object). -
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
receiver
Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-