added in version 1.0.0
belongs to Maven artifact androidx.contentpager:contentpager:1.0.0-beta01

Query

public final class Query
extends Object

java.lang.Object
   ↳ androidx.contentpager.content.Query


Encapsulates information related to calling ContentResolver.query(Uri, String[], Bundle, CancellationSignal), including the logic determining the best query method to call.

Summary

Public methods

boolean equals(Object obj)
int getId()
int getLimit()
int getOffset()
Uri getUri()
int hashCode()
String toString()

Inherited methods

Public methods

equals

public boolean equals (Object obj)

Parameters
obj Object

Returns
boolean

getId

added in version 1.0.0
public int getId ()

Returns
int the id for this query. Derived from Uri as well as paging arguments.

getLimit

added in version 1.0.0
public int getLimit ()

Returns
int the limit.

getOffset

added in version 1.0.0
public int getOffset ()

Returns
int the offset.

getUri

added in version 1.0.0
public Uri getUri ()

Returns
Uri the Uri.

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String