Class CaseInsensitiveParametersProvider
- java.lang.Object
-
- jetbrains.buildServer.parameters.impl.CaseInsensitiveParametersProvider
-
- All Implemented Interfaces:
MapParametersProvider,ParametersProvider
@Deprecated public class CaseInsensitiveParametersProvider extends Object implements MapParametersProvider
Deprecated.see jetbrains.buildServer.agent.impl.CaseInsensitiveBuildParamsAllows to find stored parameters with no respect to key's case. e.g. Useful to find environment variables under Windows.Implementation os quite slow to use. It is implemented in linear time for mostly all operations. This could be too slow in some scenarios.
- Author:
- Yegor.Yarko Date: 09.08.2008
-
-
Constructor Summary
Constructors Constructor Description CaseInsensitiveParametersProvider(MapParametersProvider source)Deprecated.use another constructorCaseInsensitiveParametersProvider(MapParametersProvider source, String[] prefixes)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Stringget(String key)Deprecated.Map<String,String>getAll()Deprecated.Allows to get map of the provided parameters.voidput(String key, String value)Deprecated.Puts the key-value pair into the backing map, ensuring there is no other keys in the backing map which are equal to key in case-insensitive mannervoidputAll(Map<String,String> fromMap)Deprecated.Allows to add map of parameters into the backing mapStringremove(String key)Deprecated.Removes all the parameters that has keys equal to the passed key in case-insensitive mannerintsize()Deprecated.Returns the number of parameters in this parameters provider.StringtoString()Deprecated.
-
-
-
Constructor Detail
-
CaseInsensitiveParametersProvider
@Deprecated public CaseInsensitiveParametersProvider(@NotNull MapParametersProvider source)
Deprecated.use another constructor- Parameters:
source- source map
-
CaseInsensitiveParametersProvider
@Deprecated public CaseInsensitiveParametersProvider(@NotNull MapParametersProvider source, @NotNull String[] prefixes)
Deprecated.Creates provider which applies case-insensitive key search only for keys starting with one of the prefixes.- Parameters:
source- the backing providerprefixes- the prefixes to select keys for applying case-insensitive search
-
-
Method Detail
-
size
public int size()
Deprecated.Description copied from interface:ParametersProviderReturns the number of parameters in this parameters provider. This is the size of the map returned by getAll method.- Specified by:
sizein interfaceParametersProvider
-
getAll
public Map<String,String> getAll()
Deprecated.Description copied from interface:ParametersProviderAllows to get map of the provided parameters. Note that get method can provide more parameters then are returned by this method. However, all the parameters returned by this method should also be available via get method.- Specified by:
getAllin interfaceParametersProvider- Returns:
- the source map as is, no case-specific transformations are made
-
get
public String get(@NotNull String key)
Deprecated.- Specified by:
getin interfaceParametersProvider- Parameters:
key- the name of the parameter- Returns:
- the value associated with a key, or null if the parameter with the key cannot be found.
-
put
public void put(@NotNull String key, @NotNull String value)Deprecated.Puts the key-value pair into the backing map, ensuring there is no other keys in the backing map which are equal to key in case-insensitive manner- Specified by:
putin interfaceMapParametersProvider
-
remove
@Nullable public String remove(@NotNull String key)
Deprecated.Removes all the parameters that has keys equal to the passed key in case-insensitive manner- Specified by:
removein interfaceMapParametersProvider
-
putAll
public void putAll(@NotNull Map<String,String> fromMap)Deprecated.Description copied from interface:MapParametersProviderAllows to add map of parameters into the backing map- Specified by:
putAllin interfaceMapParametersProvider- Parameters:
fromMap- the map to copy parameters from
-
-