From 2a49e2ee6bb1fac183e7ad60a7ef93b066996019 Mon Sep 17 00:00:00 2001 From: carm Date: Thu, 20 Feb 2025 16:49:36 +0800 Subject: [PATCH] docs: Fixed quantity usage --- .../lib/configuration/source/section/ConfigureSection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/cc/carm/lib/configuration/source/section/ConfigureSection.java b/core/src/main/java/cc/carm/lib/configuration/source/section/ConfigureSection.java index 5145314..21ec7cc 100644 --- a/core/src/main/java/cc/carm/lib/configuration/source/section/ConfigureSection.java +++ b/core/src/main/java/cc/carm/lib/configuration/source/section/ConfigureSection.java @@ -360,7 +360,7 @@ public interface ConfigureSection extends Cloneable { * Predicate the value of given path is a {@link Integer}. * * @param path The path to check. - * @return True if the value is present and is a int, false otherwise. + * @return True if the value is present and is an int, false otherwise. */ default boolean isInt(@NotNull String path) { return isType(path, Integer.class); @@ -370,7 +370,7 @@ public interface ConfigureSection extends Cloneable { * Get the value as a {@link Integer} from the specified path. * * @param path The path to get the int. - * @return The int if the path exists and is a int, otherwise 0. + * @return The int if the path exists and is an int, otherwise 0. */ default @Nullable Integer getInt(@NotNull String path) { return getInt(path, 0); @@ -381,7 +381,7 @@ public interface ConfigureSection extends Cloneable { * * @param path The path to get the int. * @param def The default value to return if the path does not exist. - * @return The int if the path exists and is a int, otherwise the default value. + * @return The int if the path exists and is an int, otherwise the default value. */ @Contract("_, !null -> !null") default @Nullable Integer getInt(@NotNull String path, @Nullable Integer def) {