public interface MutableRegistry extends Registry, RegistrySpec
Registry that is also mutable.| Modifier and Type | Method and Description |
|---|---|
default <T> void |
remove(Class<T> type)
Remove the registration for the given type.
|
<T> void |
remove(TypeToken<T> type)
Remove the registration for the given type.
|
first, first, get, get, getAll, getAll, join, maybeGet, maybeGetadd, add, add, addLazy, addLazy, addLazyAsync, addLazyAsync, withdefault <T> void remove(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(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