CrossProcessCursorWrapper
open class CrossProcessCursorWrapper : CursorWrapper, CrossProcessCursor
Cursor wrapper that implements CrossProcessCursor
.
If the wrapped cursor implements CrossProcessCursor
, then the wrapper delegates fillWindow
, getWindow()
and onMove
to it. Otherwise, the wrapper provides default implementations of these methods that traverse the contents of the cursor similar to AbstractCursor.fillWindow
.
This wrapper can be used to adapt an ordinary Cursor
into a CrossProcessCursor
.
Summary
Inherited constants |
From class Cursor
|
Public constructors |
Creates a cross process cursor wrapper.
|
Public constructors
CrossProcessCursorWrapper
CrossProcessCursorWrapper(cursor: Cursor!)
Creates a cross process cursor wrapper.
Parameters |
cursor |
Cursor!: The underlying cursor to wrap. |
Public methods
fillWindow
open fun fillWindow(
position: Int,
window: CursorWindow!
): Unit
Parameters |
position |
Int: The zero-based index of the first row to copy into the window. |
window |
CursorWindow!: The window to fill. |
onMove
open fun onMove(
oldPosition: Int,
newPosition: Int
): Boolean
Parameters |
oldPosition |
Int: The position that we're moving from. |
newPosition |
Int: The position that we're moving to. |
Return |
Boolean |
True if the move is successful, false otherwise. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]