From 61fd71f69e080790da722e0e03b71ecd7c2538a2 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Tue, 10 May 2016 16:02:45 -0400 Subject: General update --- .../bjc/utils/components/IComponentRepository.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java index 6780f2e..2644276 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java +++ b/BJC-Utils2/src/main/java/bjc/utils/components/IComponentRepository.java @@ -1,17 +1,18 @@ package bjc.utils.components; -import bjc.utils.funcdata.IFunctionalList; -import bjc.utils.funcdata.IFunctionalMap; +import bjc.utils.funcdata.IList; +import bjc.utils.funcdata.IMap; /** - * A collection of implementations of {@link IDescribedComponent} + * A collection of implementations of a particular type of + * {@link IDescribedComponent} * * @author ben * - * @param + * @param * The type of components contained in this repository */ -public interface IComponentRepository { +public interface IComponentRepository { /** * Get a component with a specific name * @@ -20,15 +21,15 @@ public interface IComponentRepository { * @return The named component, or null if no component with that name * exists */ - public E getComponentByName(String name); + public ComponentType getByName(String name); /** * Get a list of all the registered componets * * @return A list of all the registered components */ - public default IFunctionalList getComponentList() { - return getComponents().valueList(); + public default IList getList() { + return getAll().valueList(); } /** @@ -37,7 +38,7 @@ public interface IComponentRepository { * @return A map from component name to component, containing all of * the components in the repositories */ - public IFunctionalMap getComponents(); + public IMap getAll(); /** * Get the source from which these components came -- cgit v1.2.3