Class CaseInsensitiveParametersProvider

  • All Implemented Interfaces:
    MapParametersProvider, ParametersProvider

    @Deprecated
    public class CaseInsensitiveParametersProvider
    extends Object
    implements MapParametersProvider
    Deprecated.
    see jetbrains.buildServer.agent.impl.CaseInsensitiveBuildParams
    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 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 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 Map<String,​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 String get​(@NotNull
                          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
                        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:
        put in interface MapParametersProvider
      • 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:
        remove in interface MapParametersProvider