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 NothingParametersProviderinstanceThe instaqnce.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(String key)Map<String,String>getAll()Allows to get map of the provided parameters.intsize()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:
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.
-
size
public int size()
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()
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:
- copy of the backed data
-
-