Package jetbrains
Class NothingParametersProvider
- java.lang.Object
-
- jetbrains.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
-
-
Field Summary
Fields Modifier and Type Field Description static NothingParametersProvider
instance
The instaqnce.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
get(String key)
Map<String,String>
getAll()
Allows to get map of the provided parameters.int
size()
Returns the number of parameters in this parameters provider.
-
-
-
Field Detail
-
instance
public static final NothingParametersProvider instance
The instaqnce. Thread safe because does nothing.
-
-
Method Detail
-
get
public String get(@NotNull String key)
- Specified by:
get
in 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.
-
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 interfaceParametersProvider
-
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 interfaceParametersProvider
- Returns:
- copy of the backed data
-
-