reword a couple comments and minor reformatting

This commit is contained in:
James Seibel
2024-01-30 19:33:04 -06:00
parent a27593149a
commit 4ab2fef1ac
4 changed files with 40 additions and 23 deletions
@@ -51,7 +51,7 @@ public interface IDhApiEventInjector extends IDependencyInjector<IDhApiEvent>
* @param eventParameterObject event parameter
* @param <T> the parameter type taken by the event handlers.
* @param <U> the {@link IDhApiEvent}'s class
* @return if any of bound event handlers returned that this event should be canceled.
* @return if any of the bound event handlers notified that this event should be canceled.
*/
<T, U extends IDhApiEvent<T>> boolean fireAllEvents(Class<U> abstractEvent, T eventParameterObject);
@@ -48,6 +48,10 @@ public class OverrideInjector implements IOverrideInjector<IDhApiOverrideable>
//==============//
// constructors //
//==============//
public OverrideInjector()
{
String thisPackageName = this.getClass().getPackage().getName();
@@ -60,6 +64,10 @@ public class OverrideInjector implements IOverrideInjector<IDhApiOverrideable>
//=========//
// binding //
//=========//
@Override
public void bind(Class<? extends IDhApiOverrideable> dependencyInterface, IDhApiOverrideable dependencyImplementation) throws IllegalStateException, IllegalArgumentException
{
@@ -103,6 +111,14 @@ public class OverrideInjector implements IOverrideInjector<IDhApiOverrideable>
overrideContainer.addOverride(dependencyImplementation);
}
//=========//
// getters //
//=========//
@Override
@SuppressWarnings("unchecked")
public <T extends IDhApiOverrideable> T get(Class<T> interfaceClass) throws ClassCastException
@@ -42,7 +42,7 @@ public class OverridePriorityListContainer implements IBindable
OverridePriorityPair priorityPair = new OverridePriorityPair(override, override.getPriority());
this.overridePairList.add(priorityPair);
sortList();
this.sortList();
}
/** @return true if the override was removed from the list, false otherwise. */