Package jetbrains

Class NothingParametersProvider

  • All Implemented Interfaces:
    ParametersProvider

    public class NothingParametersProvider
    extends Object
    implements ParametersProvider
    Implements parameters provider that provides nothing. Designed for tests.
    Author:
    Leonid Bushuev from JetBrains
    • Method Detail

      • get

        public String get​(@NotNull
                          String key)
        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.
      • size

        public int size()
        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()
        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:
        copy of the backed data