com.qualcommlabs.usercontext.protocol.profile
Class CustomAttributes
java.lang.Object
com.qualcommlabs.usercontext.protocol.profile.CustomAttributes
public class CustomAttributes
- extends Object
CustomAttributes
public CustomAttributes()
CustomAttributes
public CustomAttributes(CustomAttributes source)
addStringAttribute
public void addStringAttribute(String name,
String value)
- Adds a custom attribute.
- Parameters:
name
- the custom attribute namevalue
- the custom attribute value
getStringAttribute
public String getStringAttribute(String name)
- Gets the custom attribute with the given name.
- Parameters:
name
- the name
- Returns:
- the attribute value
removeAttribute
public void removeAttribute(String name)
- Removes the custom attribute with the given name.
- Parameters:
name
- the name
keys
public Set<String> keys()
size
public int size()
- Returns:
- the number of custom attributes
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2014 Qualcomm Retail Solutions, Inc.. All Rights Reserved.