com.qualcommlabs.usercontext.protocol
Class ContentAttributes

java.lang.Object
  extended by com.qualcommlabs.usercontext.protocol.ContentAttributes

public class ContentAttributes
extends Object


Constructor Summary
ContentAttributes()
           
 
Method Summary
 void addStringAttribute(String key, String value)
          Adds string value for a key.
 boolean equals(Object obj)
           
 Map<String,Object> getAttributes()
           
 String getStringAttribute(String key)
          Gets the content attribute with the given name.
 int hashCode()
           
 Set<String> keys()
           
 int size()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentAttributes

public ContentAttributes()
Method Detail

getAttributes

public Map<String,Object> getAttributes()

addStringAttribute

public void addStringAttribute(String key,
                               String value)
Adds string value for a key.

Parameters:
key - the key
value - the value

getStringAttribute

public String getStringAttribute(String key)
Gets the content attribute with the given name.

Parameters:
key - the key
Returns:
the attribute value

keys

public Set<String> keys()

size

public int size()
Returns:
the number of content 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.