@ProviderType public class SolaceSDTMap extends Object implements Serializable
MessageToSDTMapConverter
,
SolaceSDTMapToMessageConverter
,
Serialized FormConstructor and Description |
---|
SolaceSDTMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Removes all mappings from the map.
|
boolean |
containsKey(String key)
Returns true if this map contains a mapping with the specified key.
|
boolean |
containsValue(Object value)
Returns true if this map contains one or more mappings with the specified value.
|
Object |
get(String key)
Returns the value mapped to the specified case-sensitive key.
|
Boolean |
getBoolean(String key)
Returns the Boolean value mapped to the specified case-sensitive key.
|
Byte |
getByte(String key)
Returns the Boolean value mapped to the specified case-sensitive key.
|
byte[] |
getBytes(String key)
Returns the byte[] value mapped to the specified case-sensitive key.
|
Character |
getCharacter(String key)
Returns the Character value mapped to the specified case-sensitive key.
|
com.solacesystems.jcsmp.Destination |
getDestination(String key)
Returns the Destination value mapped to the specified case-sensitive key.
|
Double |
getDouble(String key)
Returns the Double value mapped to the specified case-sensitive key.
|
Float |
getFloat(String key)
Returns the Float value mapped to the specified case-sensitive key.
|
Integer |
getInteger(String key)
Returns the Integer value mapped to the specified case-sensitive key.
|
Long |
getLong(String key)
Returns the Long value mapped to the specified case-sensitive key.
|
com.solacesystems.jcsmp.SDTMap |
getMap(String key)
Returns the SDTMap value mapped to the specified case-sensitive key.
|
Short |
getShort(String key)
Returns the Short value mapped to the specified case-sensitive key.
|
com.solacesystems.jcsmp.SDTStream |
getStream(String key)
Returns the SDTStream value mapped to the specified case-sensitive key.
|
String |
getString(String key)
Returns the String value mapped to the specified case-sensitive key.
|
boolean |
isEmpty()
Returns true if there are no mappings.
|
Set<String> |
keySet()
Returns a Set of all the keys in the map.
|
void |
putAll(com.solacesystems.jcsmp.SDTMap sdtMap)
Copies the mappings from the given SDTMap and puts them in this SDTMap.
|
void |
putBoolean(String key,
Boolean aBoolean)
Associates the specified case-sensitive key with the value in the map.
|
void |
putByte(String key,
Byte aByte)
Associates the specified case-sensitive key with the value in the map.
|
void |
putBytes(String key,
byte[] bytes)
Associates the specified case-sensitive key with the value in the map.
|
void |
putBytes(String key,
byte[] bytes,
int offset,
int length)
Associates the specified case-sensitive key with the value in the map.
|
void |
putCharacter(String key,
Character character)
Associates the specified case-sensitive key with the value in the map.
|
void |
putDestination(String key,
com.solacesystems.jcsmp.Destination destination)
Associates the specified case-sensitive key with the value in the map.
|
void |
putDouble(String key,
Double aDouble)
Associates the specified case-sensitive key with the value in the map.
|
void |
putFloat(String key,
Float aFloat)
Associates the specified case-sensitive key with the value in the map.
|
void |
putInteger(String key,
Integer integer)
Associates the specified case-sensitive key with the value in the map.
|
void |
putLong(String key,
Long aLong)
Associates the specified case-sensitive key with the value in the map.
|
void |
putMap(String key,
com.solacesystems.jcsmp.SDTMap sdtMap)
Associates the specified case-sensitive key with the value in the map.
|
void |
putObject(String key,
Object value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putShort(String key,
Short aShort)
Associates the specified case-sensitive key with the value in the map.
|
void |
putStream(String key,
com.solacesystems.jcsmp.SDTStream sdtStream)
Associates the specified case-sensitive key with the value in the map.
|
void |
putString(String key,
String value)
Associates the specified case-sensitive key with the value in the map.
|
void |
remove(String key)
Removes the mapping for the specified key if present.
|
int |
size()
Returns the number of mappings.
|
String |
toString() |
Collection<Object> |
values()
Returns a collection of all the values in the map.
|
public void clear()
public boolean containsKey(String key)
key
- Mapping key to search for.public boolean containsValue(Object value)
value
- The mapping value to search for.public Object get(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Boolean getBoolean(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Byte getByte(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public byte[] getBytes(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Character getCharacter(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public com.solacesystems.jcsmp.Destination getDestination(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the mappublic Double getDouble(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Float getFloat(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the mappublic Integer getInteger(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Long getLong(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public com.solacesystems.jcsmp.SDTMap getMap(String key) throws PubSubPlusClientException
The returned SDTMap is backed by this SDTMap, so changes to it will modify the SDTMap.
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public Short getShort(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public com.solacesystems.jcsmp.SDTStream getStream(String key) throws PubSubPlusClientException
The returned SDTStream is backed by the SDTMap, so changes to it will modify the SDTMap.
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public String getString(String key) throws PubSubPlusClientException
key
- The case-sensitive key of the mapping value to return.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public boolean isEmpty()
true
, if there are no mappings.public Set<String> keySet()
public void putAll(com.solacesystems.jcsmp.SDTMap sdtMap) throws PubSubPlusClientException
sdtMap
- SDTMap with the mappings to add.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.public void putBoolean(String key, Boolean aBoolean) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.aBoolean
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.public void putByte(String key, Byte aByte) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.aByte
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putBytes(String key, byte[] bytes) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.bytes
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.public void putBytes(String key, byte[] bytes, int offset, int length) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.bytes
- The value to associate with the specified key.offset
- offset of the entry in side of the arraylength
- evtry lengthPubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putCharacter(String key, Character character) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.character
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putDestination(String key, com.solacesystems.jcsmp.Destination destination) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.destination
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putDouble(String key, Double aDouble) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.aDouble
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.public void putFloat(String key, Float aFloat) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.aFloat
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putInteger(String key, Integer integer) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.integer
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putLong(String key, Long aLong) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.aLong
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putMap(String key, com.solacesystems.jcsmp.SDTMap sdtMap) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.sdtMap
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putObject(String key, Object value) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string; or if the value is an
unsupported type.public void putShort(String key, Short aShort) throws PubSubPlusClientException, IllegalArgumentException
key
- Case-sensitive key that the value is associated with.aShort
- Value to be associated with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putStream(String key, com.solacesystems.jcsmp.SDTStream sdtStream) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.sdtStream
- The value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void putString(String key, String value) throws PubSubPlusClientException, IllegalArgumentException
key
- The case-sensitive key that the value is associated with.value
- the value to associate with the specified key.PubSubPlusClientException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.public void remove(String key)
key
- Case-sensitive key of the mapping to remove.public int size()
public Collection<Object> values()
Copyright 2019-2024 Solace Corporation. All rights reserved.