public final class MessageProperties
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MessageProperties.BuilderMessagePropertiesBuilder is the builder for MessageProperties. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | containsKey(java.lang.String key)Check if the properties contain the key. | 
| boolean | equals(java.lang.Object o) | 
| java.util.Map<java.lang.String,java.util.List<java.lang.String>> | getAllProperties()Get all properties. | 
| java.util.Set<java.lang.String> | getKeys()Get a  Setof the keys. | 
| java.util.List<java.lang.String> | getProperties(java.lang.String key)Get a  Listof values for a particular key. | 
| java.lang.String | getProperty(java.lang.String key)Get the first value for a particular key. | 
| java.lang.String | getProperty(java.lang.String key,
           int index)Get a specific value. | 
| int | hashCode() | 
| org.json.JSONObject | toJson()Method to export the message properties to JSONObject. | 
| java.lang.String | toString()Method to print the message properties in JSON format. | 
public final boolean containsKey(java.lang.String key)
key - property keytrue if the properties contain the keypublic final java.util.Set<java.lang.String> getKeys()
Set of the keys.null.public final java.util.List<java.lang.String> getProperties(java.lang.String key)
List of values for a particular key.key - property keyList of String valuespublic final java.lang.String getProperty(java.lang.String key)
key - property keynull if the key does not exist or values assigned to this key is empty.public final java.lang.String getProperty(java.lang.String key,
                                          int index)
key - property keyindex - index of the List of the String valuesnull if the key does not exist or index is out of range.public final java.util.Map<java.lang.String,java.util.List<java.lang.String>> getAllProperties()
Map of key and list of values, never nullpublic final java.lang.String toString()
toString in class java.lang.Objectpublic final org.json.JSONObject toJson()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object