Record Class PositionRange
java.lang.Object
java.lang.Record
io.debezium.ibmi.db2.journal.retrieve.PositionRange
public record PositionRange(boolean fromBeginning, JournalProcessedPosition start, JournalPosition end)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JournalPositionThe field for theendrecord component.private final booleanThe field for thefromBeginningrecord component.private final JournalProcessedPositionThe field for thestartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPositionRange(boolean fromBeginning, JournalProcessedPosition start, JournalPosition end) Creates an instance of aPositionRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefromBeginningrecord component.final inthashCode()Returns a hash code value for this object.start()Returns the value of thestartrecord component.(package private) booleanfinal StringtoString()Returns a string representation of this record class.
-
Field Details
-
fromBeginning
private final boolean fromBeginningThe field for thefromBeginningrecord component. -
start
The field for thestartrecord component. -
end
The field for theendrecord component.
-
-
Constructor Details
-
PositionRange
Creates an instance of aPositionRangerecord class.- Parameters:
fromBeginning- the value for thefromBeginningrecord componentstart- the value for thestartrecord componentend- the value for theendrecord component
-
-
Method Details
-
startEqualsEnd
boolean startEqualsEnd() -
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 '=='. -
fromBeginning
public boolean fromBeginning()Returns the value of thefromBeginningrecord component.- Returns:
- the value of the
fromBeginningrecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-