| java.lang.Object | |
| ↳ | com.google.android.gms.cloudsave.Entity |
CloudSave object representing an entity on the backend.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Entity.Key | A key that maps to a particular Entity instance. | ||||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | TYPE_BOOLEAN | ||||||||||
| int | TYPE_BYTE_ARRAY | ||||||||||
| int | TYPE_DOUBLE | ||||||||||
| int | TYPE_LIST | ||||||||||
| int | TYPE_LONG | ||||||||||
| int | TYPE_NULL | ||||||||||
| int | TYPE_STRING | ||||||||||
| int | TYPE_UNKNOWN | ||||||||||
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
| |||||||||||
From interface
com.google.android.gms.common.internal.safeparcel.SafeParcelable
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| CREATOR | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Clears all properties.
| |||||||||||
Check if the provided entity is equivalent to the current one.
| |||||||||||
Returns the
Entity.Key assigned to this Entity. | |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Get the value of property with the given name or defaultValue if the property does not exist.
| |||||||||||
Returns the set of names of all properties in this Entity.
| |||||||||||
Returns true if there is a property with the given name.
| |||||||||||
Returns true if there are no properties in this Entity.
| |||||||||||
Removes the property with the specified name.
| |||||||||||
Sets the property with the given name to the specified value.
| |||||||||||
Sets the property with the given name to the specified value.
| |||||||||||
Sets the property with the given name to the specified value.
| |||||||||||
Sets the property with the given name to the specified list value.
| |||||||||||
Sets the property with the given name to the 'null' value.
| |||||||||||
Sets the property with the given name to the specified value.
| |||||||||||
Sets the property with the given name to the specified value.
| |||||||||||
The number of properties present in the Entity.
| |||||||||||
Returns the type of the value for the property with the given name.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
| |||||||||||
Clears all properties.
Check if the provided entity is equivalent to the current one. Two entities are equivalent if the following conditions are met: - Both entities have the same key - Both entities have the same number of properties - For every property in an entity there is an equivalent property in the other entity with the same property name, type and value. List values are equivalent if they have the same elements (both type and value) in the same order - Ordering of the properties within the entities doesn't matter
| object | The entity to compare the current entity to |
|---|
Get the value of property with the given name or defaultValue if the property does not exist.
Get the value of property with the given name or defaultValue if the property does not exist.
Get the value of property with the given name or defaultValue if the property does not exist.
Get the value of property with the given name or defaultValue if the property does not exist.
Get the value of property with the given name or defaultValue if the property does not exist.
Get the value of property with the given name or defaultValue if the property does not exist.
Returns true if there are no properties in this Entity.
Removes the property with the specified name.
| name | name identifying the property to be removed |
|---|
Sets the property with the given name to the specified value. Overrides any existing value for this property.
Sets the property with the given name to the specified value. Overrides any existing value for this property.
Sets the property with the given name to the specified value. Overrides any existing value for this property.
Sets the property with the given name to the specified list value. Overrides any existing value for this property.
Sets the property with the given name to the 'null' value. Overrides any existing value for this property.
Sets the property with the given name to the specified value. Overrides any existing value for this property.
Sets the property with the given name to the specified value. Overrides any existing value for this property.
The number of properties present in the Entity.
Returns the type of the value for the property with the given name.