|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUserParameters
An interface responsible for user parameter collection handling.
All methods of this interface are thread-safe.
| Method Summary | ||
|---|---|---|
IUserParameter<Boolean> |
addBooleanParameter(String key,
Boolean value)
Adds a new boolean parameter to the collection. |
|
IUserParameter<Double> |
addDoubleParameter(String key,
Double value)
Adds a new double parameter to the collection. |
|
IUserParameter<Integer> |
addIntParameter(String key,
Integer value)
Adds a new integer parameter to the collection. |
|
IUserParameter<Long> |
addLongParameter(String key,
Long value)
Adds a new long parameter to the collection. |
|
IUserParameter<String> |
addStringParameter(String key,
String value)
Adds a new string parameter to the collection. |
|
Collection<IUserParameter<?>> |
getAllParameters()
Returns all parameters from the collection as a read-only snapshot copy. |
|
IUserParameter<Boolean> |
getBooleanParameter(String key)
Returns a boolean parameter from the collection. |
|
IUserParameter<Double> |
getDoubleParameter(String key)
Returns a double parameter from the collection. |
|
IUserParameter<Integer> |
getIntParameter(String key)
Returns an integer parameter from the collection. |
|
IUserParameter<Long> |
getLongParameter(String key)
Returns a long parameter from the collection. |
|
|
getParameter(String key,
Class<T> type)
Returns a parameter - an IUserParameter interface implementation instance - identified by the given key. |
|
IUserParameter<String> |
getStringParameter(String key)
Returns a string parameter from the collection. |
|
IUserParameter<?> |
removeParameter(String key)
Removes a parameter from the collection. |
|
| Method Detail |
|---|
IUserParameter<Integer> addIntParameter(String key,
Integer value)
key - The key of the parameter. Must be unique in the context of this collection.value - The value of the parameter.
IUserParameter implementation instance.
IllegalArgumentException - If the key is null or empty.
If the key is already exists in the collection.
IUserParameter<Long> addLongParameter(String key,
Long value)
key - The key of the parameter. Must be unique in the context of this collection.value - The value of the parameter.
IUserParameter implementation instance.
IllegalArgumentException - If the key is null or empty.
If the key is already exists in the collection.
IUserParameter<Double> addDoubleParameter(String key,
Double value)
key - The key of the parameter. Must be unique in the context of this collection.value - The value of the parameter.
IUserParameter implementation instance.
IllegalArgumentException - If the key is null or empty.
If the key is already exists in the collection.
IUserParameter<String> addStringParameter(String key,
String value)
key - The key of the parameter. Must be unique in the context of this collection.value - The value of the parameter.
IUserParameter implementation instance.
IllegalArgumentException - If the key is null or empty.
If the key is already exists in the collection.
IUserParameter<Boolean> addBooleanParameter(String key,
Boolean value)
key - The key of the parameter. Must be unique in the context of this collection.value - The value of the parameter.
IUserParameter implementation instance.
IllegalArgumentException - If the key is null or empty.
If the key is already exists in the collection.IUserParameter<Integer> getIntParameter(String key)
key - The key of the parameter.
IUserParameter interface.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key is not Integer.class.IUserParameter<Long> getLongParameter(String key)
key - The key of the parameter.
IUserParameter interface.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key is not Long.class.IUserParameter<Double> getDoubleParameter(String key)
key - The key of the parameter.
IUserParameter interface.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key is not Double.class.IUserParameter<String> getStringParameter(String key)
key - The key of the parameter.
IUserParameter interface.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key is not String.class.IUserParameter<Boolean> getBooleanParameter(String key)
key - The key of the parameter.
IUserParameter interface.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key is not Boolean.class.Collection<IUserParameter<?>> getAllParameters()
IUserParameter interface
implementations.
<T> IUserParameter<T> getParameter(String key,
Class<T> type)
IUserParameter interface implementation instance - identified by the given key.
No exception will be thrown if the parameter specified by the key does not exists in the collection.
T - The generic type of the parameter.key - The key of the parameter. Must be not null and not empty.type - The type of the parameter. Might be null.
IllegalArgumentException - If the key is null or empty.
If the parameter's type specified by the given key does not match the given type.IUserParameter<?> removeParameter(String key)
key - The key of the parameter. Must be not null and not empty.
IUserParameter interface).
IllegalArgumentException - If the key is null or empty.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||