Class Cursor (2.22.0)

publicfinalclass CursorimplementsSerializable

A Google Cloud Datastore cursor. The cursor can be used to as a starting point or an ending point for a Query

Inheritance

Object > Cursor

Implements

Serializable

Static Methods

copyFrom(byte[] bytes)

publicstaticCursorcopyFrom(byte[]bytes)
Parameter
Name Description
bytes byte[]
Returns
Type Description
Cursor

fromUrlSafe(String urlSafe)

publicstaticCursorfromUrlSafe(StringurlSafe)

Create a Cursor given its URL safe encoded form.

Parameter
Name Description
urlSafe String
Returns
Type Description
Cursor

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

toString()

publicStringtoString()
Returns
Type Description
String
Overrides

toUrlSafe()

publicStringtoUrlSafe()

Returns the cursor in an encoded form that can be used as part of a URL.

Returns
Type Description
String

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.