Package org.robolectric.plugins
Class HierarchicalConfigurationStrategy.ConfigurationImpl
- java.lang.Object
-
- org.robolectric.plugins.HierarchicalConfigurationStrategy.ConfigurationImpl
-
- All Implemented Interfaces:
ConfigurationStrategy.Configuration
- Enclosing class:
- HierarchicalConfigurationStrategy
public static class HierarchicalConfigurationStrategy.ConfigurationImpl extends Object implements ConfigurationStrategy.Configuration
-
-
Constructor Summary
Constructors Constructor Description ConfigurationImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
get(Class<T> klass)
Returns the configuration instance of the specified class for the current test.Set<Class<?>>
keySet()
Returns the set of known configuration classes.Map<Class<?>,Object>
map()
Returns the map of known configuration classes to configuration instances.<T> void
put(Class<T> klass, T instance)
-
-
-
Method Detail
-
put
public <T> void put(Class<T> klass, T instance)
-
get
public <T> T get(Class<T> klass)
Description copied from interface:ConfigurationStrategy.Configuration
Returns the configuration instance of the specified class for the current test.- Specified by:
get
in interfaceConfigurationStrategy.Configuration
-
keySet
public Set<Class<?>> keySet()
Description copied from interface:ConfigurationStrategy.Configuration
Returns the set of known configuration classes.- Specified by:
keySet
in interfaceConfigurationStrategy.Configuration
-
map
public Map<Class<?>,Object> map()
Description copied from interface:ConfigurationStrategy.Configuration
Returns the map of known configuration classes to configuration instances.- Specified by:
map
in interfaceConfigurationStrategy.Configuration
-
-