Skip to content

Commit

Permalink
Merge pull request #24 from ImajinDevon/patch-1
Browse files Browse the repository at this point in the history
Weaken ::process(List<String>) to ::process(Collection<String>)
  • Loading branch information
PeachesMLG authored Jun 19, 2022
2 parents e9b1c3f + 5a336cb commit 1520cf7
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 1520cf7

Please sign in to comment.