Class AbstractRegistry.Namespaced<T>
java.lang.Object
ovh.mythmc.social.api.util.registry.AbstractRegistry<NamespacedRegistryKey,T>
ovh.mythmc.social.api.util.registry.AbstractRegistry.Namespaced<T>
- All Implemented Interfaces:
Iterable<T>,NamespacedRegistry<T>,Registry<NamespacedRegistryKey,T>
- Enclosing class:
AbstractRegistry<R extends RegistryKey,T>
public static class AbstractRegistry.Namespaced<T>
extends AbstractRegistry<NamespacedRegistryKey,T>
implements NamespacedRegistry<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class ovh.mythmc.social.api.util.registry.AbstractRegistry
AbstractRegistry.Identified<T>, AbstractRegistry.Namespaced<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionregistry()Retrieves the underlying map of the registry, where the keys are the registry keys and the values are the associated objects.valuesByKeyComponent(@NotNull String keyComponent) valuesByNamespaceComponent(@NotNull String namespaceComponent) Methods inherited from class ovh.mythmc.social.api.util.registry.AbstractRegistry
containsKey, containsValue, iterator, keys, register, unregister, value, values, valuesByTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface ovh.mythmc.social.api.util.registry.NamespacedRegistry
keyComponents, namespaceComponentsMethods inherited from interface ovh.mythmc.social.api.util.registry.Registry
containsKey, containsValue, keys, register, unregister, value, values, valuesByType
-
Constructor Details
-
Namespaced
protected Namespaced()
-
-
Method Details
-
registry
Description copied from interface:RegistryRetrieves the underlying map of the registry, where the keys are the registry keys and the values are the associated objects.- Specified by:
registryin interfaceRegistry<NamespacedRegistryKey,T> - Returns:
- a
Mapwhere keys are registry keys and values are the registry values.
-
valuesByNamespaceComponent
@NotNull public @NotNull List<T> valuesByNamespaceComponent(@NotNull @NotNull String namespaceComponent) - Specified by:
valuesByNamespaceComponentin interfaceNamespacedRegistry<T>
-
valuesByKeyComponent
- Specified by:
valuesByKeyComponentin interfaceNamespacedRegistry<T>
-