Skip to content

Commit 1520cf7

Browse files
authored
Merge pull request #24 from ImajinDevon/patch-1
Weaken ::process(List<String>) to ::process(Collection<String>)
2 parents e9b1c3f + 5a336cb commit 1520cf7

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/main/java/com/iridium/iridiumcolorapi/IridiumColorAPI.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import java.util.Arrays;
1616
import java.util.List;
1717
import java.util.Map;
18+
import java.util.Collection;
1819
import java.util.stream.Collectors;
1920

2021
public class IridiumColorAPI {
@@ -85,14 +86,14 @@ public static String process(@Nonnull String string) {
8586
}
8687

8788
/**
88-
* Processes multiple strings in a list.
89+
* Processes multiple strings in a collection.
8990
*
90-
* @param strings The list of the strings we are processing
91+
* @param strings The collection of the strings we are processing
9192
* @return The list of processed strings
9293
* @since 1.0.3
9394
*/
9495
@Nonnull
95-
public static List<String> process(@Nonnull List<String> strings) {
96+
public static List<String> process(@Nonnull Collection<String> strings) {
9697
return strings.stream()
9798
.map(IridiumColorAPI::process)
9899
.collect(Collectors.toList());

0 commit comments

Comments
 (0)