Skip to content

Commit

Permalink
Weaken ::process(List<String>) to ::process(Collection<String>)
Browse files Browse the repository at this point in the history
  • Loading branch information
zofiaclient authored Jun 19, 2022
1 parent e9b1c3f commit 5a336cb
Showing 1 changed file with 4 additions and 3 deletions.
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

0 comments on commit 5a336cb

Please sign in to comment.