E
- the type of keys to use.public interface PropertiesCollection<E> extends Serializable
TypedProperties
objects, representing multiple sets of properties while allowing to retrive vlaues as if it were a single set of properties.Modifier and Type | Method and Description |
---|---|
void |
addProperties(E key,
TypedProperties properties)
Add the specified properties with the specified keys.
|
boolean |
containsKey(String name)
Determine whether this properties collection contains a property witht he specified key.
|
TypedProperties |
getProperties(E key)
Add the specified properties with the specified key.
|
TypedProperties[] |
getPropertiesArray()
Get all the properties as an array.
|
String |
getProperty(String name)
Get the value of the property with the specified name.
|
void addProperties(E key, TypedProperties properties)
key
- the key to use.properties
- the properties to add.TypedProperties getProperties(E key)
key
- the key to use to retrieve the properties.TypedProperties[] getPropertiesArray()
String getProperty(String name)
name
- the name of the property to find.null
if the property could not be found.boolean containsKey(String name)
name
- the name of the property to check.true
if the property could be found, false
otherwise.Copyright © 2005-2019 JPPF Team.