java.lang.Object | |
↳ | com.google.android.gms.common.data.DataBufferUtils |
Utilities for working with DataBuffer
objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Utility helper method to freeze a DataBuffer into a list of concrete entities.
| |||||||||||
Utility function to determine whether a data buffer has data or not.
| |||||||||||
Utility function to get the "next page" pagination token from a data buffer.
| |||||||||||
Utility function to get the "prev page" pagination token from a data buffer.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Utility helper method to freeze a DataBuffer into a list of concrete entities. The DataBuffer
provided here must contain elements that implement the Freezable
interface.
Note that this will close the buffer, so do not attempt to use it afterwards.
Type T is the type of object returned by freezing an element of the DataBuffer. In most
cases, this will be the same as E
.
Type E is the type of object contained by the DataBuffer. Must implement Freezable
.
buffer | DataBuffer to freeze contents from. |
---|
Utility function to determine whether a data buffer has data or not.
buffer | The data buffer to check. |
---|
Utility function to get the "next page" pagination token from a data buffer.
Utility function to get the "prev page" pagination token from a data buffer.