Package org.glassfish.api.admin
Class ParameterMap
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ParameterMap extends org.jvnet.hk2.component.MultiMap<String,String>
A map from parameter name to a list of parameter values. (Really just a more convenient name for MultiMap.)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterMap()
Creates an empty ParameterMap.ParameterMap(ParameterMap base)
Copy constructor - copies all entries from base.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterMap
insert(String key, String value)
Fluent API for adding parameters to the map.ParameterMap
insert(String key, String value, String defaultValue)
Fluent API for adding parameters to the map.ParameterMap
insert(String key, String value, Supplier<String> defaultValueSupplier)
Fluent API for adding parameters to the map.
-
-
-
Constructor Detail
-
ParameterMap
public ParameterMap()
Creates an empty ParameterMap.
-
ParameterMap
public ParameterMap(ParameterMap base)
Copy constructor - copies all entries from base.- Parameters:
base
- source of entries
-
-
Method Detail
-
insert
public ParameterMap insert(String key, String value)
Fluent API for adding parameters to the map.- Parameters:
key
-value
-- Returns:
- ParameterMap
-
insert
public ParameterMap insert(String key, String value, String defaultValue)
Fluent API for adding parameters to the map.- Parameters:
key
-value
- - used if not nulldefaultValue
- - used if the value is null- Returns:
- ParameterMap
-
insert
public ParameterMap insert(String key, String value, Supplier<String> defaultValueSupplier)
Fluent API for adding parameters to the map.- Parameters:
key
-value
- - used if not nulldefaultValueSupplier
- - used if the value is null, must not be null.- Returns:
- ParameterMap
-
-