Record Class IncrementalSyncCursorModel
java.lang.Object
java.lang.Record
com.atlassian.confluence.plugins.restapi.rvsync.resources.model.IncrementalSyncCursorModel
- Record Components:
cursor- in string format: sync:subscriptionId:mostRecentId
- All Implemented Interfaces:
Serializable
Model class for an Incremental Sync Cursor so it can be used to return string format cursors in APIs.
- Since:
- 9.4.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIncrementalSyncCursorModel(String cursor) Creates an instance of aIncrementalSyncCursorModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IncrementalSyncCursorModel
Creates an instance of aIncrementalSyncCursorModelrecord class.- Parameters:
cursor- the value for thecursorrecord component
-
-
Method Details
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
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).
-