public interface MutableRegistry extends Registry, RegistrySpec
Registry
that is also mutable.Modifier and Type | Method and Description |
---|---|
default <T> void |
remove(java.lang.Class<T> type)
Remove the registration for the given type.
|
<T> void |
remove(com.google.common.reflect.TypeToken<T> type)
Remove the registration for the given type.
|
default <T> void remove(java.lang.Class<T> type) throws NotInRegistryException
T
- The type of the thing to removetype
- The type of the thing to removeNotInRegistryException
- if there is nothing registered by that type<T> void remove(com.google.common.reflect.TypeToken<T> type) throws NotInRegistryException
T
- The type of the thing to removetype
- The type of the thing to removeNotInRegistryException
- if there is nothing registered by that type