jetbrains.buildServer.parameters.impl
Class CaseInsensitiveParametersProvider

java.lang.Object
  extended by jetbrains.buildServer.parameters.impl.CaseInsensitiveParametersProvider
All Implemented Interfaces:
MapParametersProvider, ParametersProvider

Deprecated. see jetbrains.buildServer.agent.impl.CaseInsensitiveBuildParams

@Deprecated
public class CaseInsensitiveParametersProvider
extends java.lang.Object
implements MapParametersProvider

Allows 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
CaseInsensitiveParametersProvider(MapParametersProvider source)
          Deprecated. use another constructor
CaseInsensitiveParametersProvider(MapParametersProvider source, java.lang.String[] prefixes)
          Deprecated. 
 
Method Summary
 java.lang.String get(java.lang.String key)
          Deprecated.  
 java.util.Map<java.lang.String,java.lang.String> getAll()
          Deprecated. Allows to get map of the provided parameters.
 void put(java.lang.String key, java.lang.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
 void putAll(java.util.Map<java.lang.String,java.lang.String> fromMap)
          Deprecated. Allows to add map of parameters into the backing map
 java.lang.String remove(java.lang.String key)
          Deprecated. Removes all the parameters that has keys equal to the passed key in case-insensitive manner
 int size()
          Deprecated. Returns the number of parameters in this parameters provider.
 java.lang.String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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
                                                    java.lang.String[] prefixes)
Deprecated. 

Creates provider which applies case-insensitive key search only for keys starting with one of the prefixes.

Parameters:
source - the backing provider
prefixes - the prefixes to select keys for applying case-insensitive search
Method Detail

size

public int size()
Deprecated. 
Description copied from interface: ParametersProvider
Returns the number of parameters in this parameters provider. This is the size of the map returned by getAll method.

Specified by:
size in interface ParametersProvider

getAll

public java.util.Map<java.lang.String,java.lang.String> getAll()
Deprecated. 
Description copied from interface: ParametersProvider
Allows 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:
getAll in interface ParametersProvider
Returns:
the source map as is, no case-specific transformations are made

get

public java.lang.String get(@NotNull
                            java.lang.String key)
Deprecated. 
Specified by:
get in interface ParametersProvider
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
                java.lang.String key,
                @NotNull
                java.lang.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:
put in interface MapParametersProvider

remove

@Nullable
public java.lang.String remove(@NotNull
                                        java.lang.String key)
Deprecated. 
Removes all the parameters that has keys equal to the passed key in case-insensitive manner

Specified by:
remove in interface MapParametersProvider

putAll

public void putAll(@NotNull
                   java.util.Map<java.lang.String,java.lang.String> fromMap)
Deprecated. 
Description copied from interface: MapParametersProvider
Allows to add map of parameters into the backing map

Specified by:
putAll in interface MapParametersProvider
Parameters:
fromMap - the map to copy parameters from

toString

public java.lang.String toString()
Deprecated. 
Overrides:
toString in class java.lang.Object