File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/main/java/com/google/firebase/messaging Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2222import com .google .common .collect .ImmutableList ;
2323import com .google .common .collect .ImmutableMap ;
2424import com .google .firebase .internal .NonNull ;
25+
26+ import java .util .Collection ;
2527import java .util .HashMap ;
2628import java .util .List ;
2729import java .util .Map ;
@@ -113,13 +115,13 @@ public Builder addToken(@NonNull String token) {
113115 }
114116
115117 /**
116- * Adds a list of tokens to which the message should be sent. Up to 100 tokens can be
118+ * Adds a collection of tokens to which the message should be sent. Up to 100 tokens can be
117119 * specified on a single instance of {@link MulticastMessage}.
118120 *
119- * @param tokens List of Firebase device registration tokens.
121+ * @param tokens Collection of Firebase device registration tokens.
120122 * @return This builder.
121123 */
122- public Builder addAllTokens (@ NonNull List <String > tokens ) {
124+ public Builder addAllTokens (@ NonNull Collection <String > tokens ) {
123125 this .tokens .addAll (tokens );
124126 return this ;
125127 }
You can’t perform that action at this time.
0 commit comments