com.qualcommlabs.usercontext.protocol.profile
Class CustomAttributes

java.lang.Object
  extended by com.qualcommlabs.usercontext.protocol.profile.CustomAttributes

public class CustomAttributes
extends Object


Constructor Summary
CustomAttributes()
           
CustomAttributes(CustomAttributes source)
           
 
Method Summary
 void addStringAttribute(String name, String value)
          Adds a custom attribute.
 boolean equals(Object obj)
           
 String getStringAttribute(String name)
          Gets the custom attribute with the given name.
 int hashCode()
           
 Set<String> keys()
           
 void removeAttribute(String name)
          Removes the custom attribute with the given name.
 int size()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomAttributes

public CustomAttributes()

CustomAttributes

public CustomAttributes(CustomAttributes source)
Method Detail

addStringAttribute

public void addStringAttribute(String name,
                               String value)
Adds a custom attribute.

Parameters:
name - the custom attribute name
value - 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.