From 64c0b9b62f81810a0accbd42671b2b542e410e46 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sun, 20 Aug 2023 21:51:57 -0500 Subject: [PATCH] javadoc --- src/net/foxgenesis/database/AbstractDatabase.java | 15 +++++++++++++++ src/net/foxgenesis/property/Property.java | 5 +++++ src/net/foxgenesis/property/PropertyProvider.java | 2 ++ .../foxgenesis/util/function/QuadFunction.java | 4 ++++ src/net/foxgenesis/watame/WatameBotSettings.java | 2 ++ src/net/foxgenesis/watame/plugin/Plugin.java | 15 ++++++++------- .../foxgenesis/watame/plugin/PluginHandler.java | 1 + 7 files changed, 37 insertions(+), 7 deletions(-) diff --git a/src/net/foxgenesis/database/AbstractDatabase.java b/src/net/foxgenesis/database/AbstractDatabase.java index 99650ac..ba663b5 100644 --- a/src/net/foxgenesis/database/AbstractDatabase.java +++ b/src/net/foxgenesis/database/AbstractDatabase.java @@ -92,6 +92,8 @@ synchronized final void unload() { /** * NEED_JAVADOC + * + * @return Returns the new {@link Connection} * * @throws SQLException */ @@ -109,6 +111,7 @@ protected Connection openConnection() throws SQLException { * * @param id * @param func + * @param flags * * @throws SQLException */ @@ -146,6 +149,10 @@ protected void prepareCallable(String id, SQLConsumer func) t * @param * @param id * @param func + * @param flags + * + * @return Returns the result of {@code func} otherwise an empty + * {@link Optional} * * @throws SQLException */ @@ -167,6 +174,9 @@ protected Optional mapStatement(String id, SQLFunction * @param id * @param func + * + * @return Returns the result of {@code func} otherwise an empty + * {@link Optional} * * @throws SQLException */ @@ -185,6 +195,9 @@ protected Optional mapCallable(String id, SQLFunction property category type * @param property key type + * @param lookup type + * @param property mapping type * * @author Ashley */ diff --git a/src/net/foxgenesis/util/function/QuadFunction.java b/src/net/foxgenesis/util/function/QuadFunction.java index 73c63b9..9f95f36 100644 --- a/src/net/foxgenesis/util/function/QuadFunction.java +++ b/src/net/foxgenesis/util/function/QuadFunction.java @@ -12,6 +12,8 @@ * * @param the type of the first argument to the function * @param the type of the second argument to the function + * @param + * @param * @param the type of the result of the function * * @see Function @@ -25,6 +27,8 @@ public interface QuadFunction { * * @param t the first function argument * @param u the second function argument + * @param v + * @param w * @return the function result */ R apply(T t, U u, V v, W w); diff --git a/src/net/foxgenesis/watame/WatameBotSettings.java b/src/net/foxgenesis/watame/WatameBotSettings.java index b382845..17428ab 100644 --- a/src/net/foxgenesis/watame/WatameBotSettings.java +++ b/src/net/foxgenesis/watame/WatameBotSettings.java @@ -68,6 +68,8 @@ String getPBToken() { /** * NEED_JAVADOC + * + * @param filepath * * @return Returns the read token * diff --git a/src/net/foxgenesis/watame/plugin/Plugin.java b/src/net/foxgenesis/watame/plugin/Plugin.java index 5203f2b..521952a 100644 --- a/src/net/foxgenesis/watame/plugin/Plugin.java +++ b/src/net/foxgenesis/watame/plugin/Plugin.java @@ -33,12 +33,13 @@ /** * A service providing functionality to {@link WatameBot}. + *

+ * Providers should provide a no-argument constructor or a + * {@code public static Plugin provider()} method in accordance to + * {@link java.util.ServiceLoader.Provider#get() Provider.get()} + *

* * @author Ashley - * - * @implSpec Providers should provide a no-argument constructor or a - * {@code public static Plugin provider()} method in accordance to - * {@link java.util.ServiceLoader.Provider#get() Provider.get()} * */ public abstract class Plugin { @@ -100,13 +101,13 @@ public abstract class Plugin { * ServiceLoader} to load and initialize required plugin data. *

* Types of plugin data would include: + *

*
    *
  • Configuration settings
  • *
  • Constants
  • *
* Anything beyond the previous should be loaded in the {@link #preInit()} * method. - *

* * @throws SeverePluginException if the plugin is not in a named module or there * was a problem while loading the @@ -271,8 +272,8 @@ protected final PluginProperty getProperty(String name) { * Get the provider for registering and getting {@link PluginProperty * PluginProperties}. * - * @return Returns the {@link PluginPropertyProvider} used by {@link Plugin Plugins} to - * register plugin properties + * @return Returns the {@link PluginPropertyProvider} used by {@link Plugin + * Plugins} to register plugin properties */ protected final PluginPropertyProvider getPropertyProvider() { return WatameBot.INSTANCE.getPropertyProvider(); diff --git a/src/net/foxgenesis/watame/plugin/PluginHandler.java b/src/net/foxgenesis/watame/plugin/PluginHandler.java index 4e7e09b..a1309e2 100644 --- a/src/net/foxgenesis/watame/plugin/PluginHandler.java +++ b/src/net/foxgenesis/watame/plugin/PluginHandler.java @@ -81,6 +81,7 @@ public class PluginHandler<@NotNull T extends Plugin> implements Closeable { * Construct a new {@link PluginHandler} with the specified {@link ModuleLayer} * and plugin {@link Class}. * + * @param context - instance context * @param layer - layer the {@link ServiceLoader} should use * @param pluginClass - the plugin {@link Class} to load */