public interface SDTMap
Boolean
, Byte
, Character
, Destination
, Double
,Float
,Integer
,Long
,SDTMap
,Short
,SDTStream
,String
.For values written as the row type, they can be read as the column type according to the following table.
| | boolean byte byte[] char dest double float int long Map short Stream String |-------------------------------------------------------------------------------------- |boolean | X X |byte | X X X X X |byte[] | X |char | X X |dest | X |double | X X |float | X X X |int | X X X X X |long | X X X X X |Map | X |SMFMsg | |short | X X X X X |Stream | X |String | X X X X X X X X |--------------------------------------------------------------------------------------A SDTMap may not contain itself as a value.
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 Byte 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.
|
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.
|
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.
|
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(SDTMap map)
Copies the mappings from the given SDTMap and puts them in this SDTMap.
|
void |
putBoolean(String key,
Boolean value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putByte(String key,
Byte value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putBytes(String key,
byte[] value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putBytes(String key,
byte[] value,
int offset,
int length)
Associates the specified case-sensitive key with the value in the map.
|
void |
putCharacter(String key,
Character value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putDestination(String key,
Destination value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putDouble(String key,
Double value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putFloat(String key,
Float value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putInteger(String key,
Integer value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putLong(String key,
Long value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putMap(String key,
SDTMap value)
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 value)
Associates the specified case-sensitive key with the value in the map.
|
void |
putStream(String key,
SDTStream value)
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.
|
Collection<Object> |
values()
Returns a collection of all the values in the map.
|
void clear()
boolean containsKey(String key)
key
- Mapping key to search for.boolean containsValue(Object value)
value
- The mapping value to search for.void remove(String key)
key
- Case-sensitive key of the mapping to remove.Object get(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.Boolean getBoolean(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Boolean is invalid.Byte getByte(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the mapSDTFormatException
- If the conversion from the mapped type to Byte is invalid.byte[] getBytes(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to byte[] is invalid.Character getCharacter(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Character is invalid.Destination getDestination(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the mapSDTFormatException
- If the conversion from the mapped type to Destination is invalid.Double getDouble(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Double is invalid.Float getFloat(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the mapSDTFormatException
- If the conversion from the mapped type to Float is invalid.Integer getInteger(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Integer is invalid.Long getLong(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Long is invalid.SDTMap getMap(String key) throws SDTException
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.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to a SDTMap is invalid.Short getShort(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to Short is invalid.SDTStream getStream(String key) throws SDTException
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.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to a SDTStream is invalid.String getString(String key) throws SDTException
key
- The case-sensitive key of the mapping value to return.SDTException
- Thrown if an internal error occurs accessing the map.SDTFormatException
- If the conversion from the mapped type to String is invalid.boolean isEmpty()
Set<String> keySet()
int size()
Collection<Object> values()
void putBoolean(String key, Boolean value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.void putByte(String key, Byte value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putBytes(String key, byte[] value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.void putBytes(String key, byte[] value, int offset, int length) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putCharacter(String key, Character value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putDestination(String key, Destination value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putDouble(String key, Double value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the mapIllegalArgumentException
- if the key is null or an empty string.void putFloat(String key, Float value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putInteger(String key, Integer value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putLong(String key, Long value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putMap(String key, SDTMap value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putShort(String key, Short value) throws SDTException
key
- Case-sensitive key that the value is associated with.value
- Value to be associated with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putStream(String key, SDTStream value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putString(String key, String value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- the value to associate with the specified key.SDTException
- Thrown if an internal error occurs accessing the map.IllegalArgumentException
- if the key is null or an empty string.void putObject(String key, Object value) throws SDTException
key
- The case-sensitive key that the value is associated with.value
- The value to associate with the specified key.SDTException
- 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.void putAll(SDTMap map) throws SDTException
map
- SDTMap with the mappings to add.SDTException
- Thrown if an internal error occurs accessing the map.Copyright 2004-2024 Solace Corporation. All rights reserved.