public class UserProperties extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<UserProperties> |
CREATOR
Parcelable Creator.
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
UserProperties()
Initializes a new instance of the
UserProperties . |
Modifier and Type | Method and Description |
---|---|
void |
apply(UserProperties properties)
Apply properties from another instance.
|
int |
describeContents() |
Map<String,String> |
getAllAppProperties()
Returns an unmodifiable map of a all application properties.
|
Map<String,String> |
getAllSharedProperties()
Returns an unmodifiable map of a all shared properties.
|
String |
getAppProperty(String name)
Get the app specific property for the provided name.
|
String |
getSharedProperty(String name)
Get the shared property for the provided name.
|
String |
putAppProperty(String name,
String value)
Set the app specific property value for the provided name.
|
String |
putSharedProperty(String name,
String value)
Set the shared property value for the provided name.
|
void |
removeAppProperty(String name)
Remove a property from application properties.
|
void |
removeSharedProperty(String name)
Remove a property from shared properties.
|
void |
writeToParcel(Parcel dest,
int flags) |
public static final Parcelable.Creator<UserProperties> CREATOR
public UserProperties()
UserProperties
.public String getAppProperty(String name)
name
- The name of the property to retrieve.null
if none set.public Map<String,String> getAllAppProperties()
public String putAppProperty(String name, String value)
null
.name
- The name of the property to set.value
- The new value of the property or null
to clear the value.public String getSharedProperty(String name)
name
- The name of the property to retrieve.null
if none set.public Map<String,String> getAllSharedProperties()
public String putSharedProperty(String name, String value)
null
.name
- The name of the property to set.value
- The new value of the property or null
to clear the value.public void removeAppProperty(String name)
name
- Property name.public void removeSharedProperty(String name)
name
- Property name.public void apply(UserProperties properties)
properties
- An instance of UserProperties
.public int describeContents()
describeContents
in interface Parcelable
public void writeToParcel(Parcel dest, int flags)
writeToParcel
in interface Parcelable
Copyright © 2013-2016 INRIX, Inc. All Rights Reserved.