java.lang.Object | |
↳ | com.google.android.gms.common.data.DataHolder.Builder |
Helper class to build DataHolder
instances containing arbitrary data.
Note that the constructor is private; use DataHolder.builder() to create instances of this class.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Instantiate an
DataHolder from this DataHolder.Builder with the given status code
and metadata. | |||||||||||
Instantiate an
DataHolder from this DataHolder.Builder with the given status code
and null metadata. | |||||||||||
Sort the rows in this builder based on the standard data type comparisons for the value
in the provided column.
| |||||||||||
Add a new row of data to the
DataHolder this DataHolder.Builder will create. | |||||||||||
Add a new row of data to the
DataHolder this DataHolder.Builder will create. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Instantiate an DataHolder
from this DataHolder.Builder
with the given status code
and metadata.
statusCode | The status code of this DataHolder . |
---|---|
metadata | The metadata associated with this DataHolder (may be null). |
DataHolder
representation of this object.
Instantiate an DataHolder
from this DataHolder.Builder
with the given status code
and null metadata.
statusCode | The status code of this DataHolder . |
---|
DataHolder
representation of this object.
Sort the rows in this builder based on the standard data type comparisons for the value in the provided column. Calling this multiple times with the same column will not change the sort order of the builder. Note that any data which is added after this call will not be sorted.
sortColumn | The column to sort the rows in this builder by. |
---|
DataHolder.Builder
to continue construction.
Add a new row of data to the DataHolder
this DataHolder.Builder
will create.
Note that the data must contain an entry for all columns
Currently the only supported value types that are supported are String, Long, and Boolean (Integer is also accepted and will be stored as a Long).
values | ContentValues containing row data. |
---|
DataHolder.Builder
to continue construction.
Add a new row of data to the DataHolder
this DataHolder.Builder
will create.
Currently the only supported value types that are supported are String, Long, and Boolean (Integer is also accepted and will be stored as a Long).
row | Map containing row data. |
---|
DataHolder.Builder
to continue construction.