diff --git a/src/main/java/com/iridium/iridiumcolorapi/IridiumColorAPI.java b/src/main/java/com/iridium/iridiumcolorapi/IridiumColorAPI.java index 3e96f0e..4d32031 100644 --- a/src/main/java/com/iridium/iridiumcolorapi/IridiumColorAPI.java +++ b/src/main/java/com/iridium/iridiumcolorapi/IridiumColorAPI.java @@ -15,6 +15,7 @@ import java.util.Arrays; import java.util.List; import java.util.Map; +import java.util.Collection; import java.util.stream.Collectors; public class IridiumColorAPI { @@ -85,14 +86,14 @@ public static String process(@Nonnull String string) { } /** - * Processes multiple strings in a list. + * Processes multiple strings in a collection. * - * @param strings The list of the strings we are processing + * @param strings The collection of the strings we are processing * @return The list of processed strings * @since 1.0.3 */ @Nonnull - public static List process(@Nonnull List strings) { + public static List process(@Nonnull Collection strings) { return strings.stream() .map(IridiumColorAPI::process) .collect(Collectors.toList());