Package org.jppf.utils
Interface PropertiesCollection<E>
- Type Parameters:
E- the type of keys to use.
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
JPPFSystemInformation
A grouping of
TypedProperties objects, representing multiple sets of properties while allowing to retrive vlaues as if it were a single set of properties.- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperties(E key, TypedProperties properties) Add the specified properties with the specified keys.booleancontainsKey(String name) Determine whether this properties collection contains a property witht he specified key.getProperties(E key) Add the specified properties with the specified key.Get all the properties as an array.getProperty(String name) Get the value of the property with the specified name.
-
Method Details
-
addProperties
Add the specified properties with the specified keys.- Parameters:
key- the key to use.properties- the properties to add.
-
getProperties
Add the specified properties with the specified key.- Parameters:
key- the key to use to retrieve the properties.- Returns:
- the properties to correponding to the key, or null if the key could not be found.
-
getPropertiesArray
TypedProperties[] getPropertiesArray()Get all the properties as an array.- Returns:
- an array of all the sets of properties.
-
getProperty
Get the value of the property with the specified name.- Parameters:
name- the name of the property to find.- Returns:
- the proerty value, or
nullif the property could not be found.
-
containsKey
Determine whether this properties collection contains a property witht he specified key.- Parameters:
name- the name of the property to check.- Returns:
trueif the property could be found,falseotherwise.
-