@ProviderType public interface TypedProperties extends Serializable
Modifier and Type | Method and Description |
---|---|
boolean |
containsProperty(String name)
Determines whether this object contains the specified property name.
|
Boolean |
getBooleanProperty(String name)
Gets the
Boolean for the specified property name. |
Integer |
getIntegerProperty(String name)
Gets the
Integer value for the specified property name. |
Long |
getLongProperty(String name)
Gets the
Long value for the specified property name. |
Object |
getObjectProperty(String name)
Gets the object containing for the specified property name.
|
String |
getProperty(String name)
Gets the
String value for the specified property name. |
Set<String> |
propertyNames()
Gets the property names for this object.
|
Object |
remove(String key)
Removes the mapping for a key from this property container if it is present
|
Boolean |
setBooleanProperty(String name,
Boolean value)
Sets the
Boolean value for the specified property name. |
Integer |
setIntegerProperty(String name,
Integer value)
Sets the
Integer value for the specified property name. |
Long |
setLongProperty(String name,
Long value)
Sets the
Long value for the specified property name. |
Object |
setObjectProperty(String name,
Object value)
Sets the object for the specified property name.
|
Object |
setProperty(String name,
String value)
Sets the
String value for the specified property name. |
Map<String,Object> |
toUnmodifiableMap()
Gets a
Map object of all the properties. |
boolean containsProperty(String name)
name
- the name of the property to search fortrue
if the property is present, false
otherwiseBoolean getBooleanProperty(String name)
Boolean
for the specified property name.name
- the name of the propertyInteger getIntegerProperty(String name)
Integer
value for the specified property name.name
- the name of the propertynull
Long getLongProperty(String name)
Long
value for the specified property name.name
- the name of the propertynull
Object getObjectProperty(String name)
name
- the name of the propertyString getProperty(String name)
String
value for the specified property name.name
- the name of the propertySet<String> propertyNames()
Object remove(String key)
key
- key whose mapping is to be removedBoolean setBooleanProperty(String name, Boolean value)
Boolean
value for the specified property name.name
- the name of the propertyvalue
- the boolean value to set for the name
propertynull
Integer setIntegerProperty(String name, Integer value)
Integer
value for the specified property name.name
- the name of the propertyvalue
- the value to set for the name
propertynull
Long setLongProperty(String name, Long value)
Long
value for the specified property name.name
- the name of the propertyvalue
- the value to set for the name
propertynull
Object setObjectProperty(String name, Object value)
name
- the name of the propertyvalue
- the value to setnull
Object setProperty(String name, String value)
String
value for the specified property name.name
- the name of the propertyvalue
- the value to set for the name
propertyCopyright 2019-2024 Solace Corporation. All rights reserved.