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.
|
backedBy, builder, empty, first, first, get, get, getAll, getAll, join, maybeGet, maybeGet, of, single, single, single
add, add, add, addLazy, addLazy, addLazyAsync, addLazyAsync, with
default <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