Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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<String> process(@Nonnull List<String> strings) {
public static List<String> process(@Nonnull Collection<String> strings) {
return strings.stream()
.map(IridiumColorAPI::process)
.collect(Collectors.toList());
Expand Down