In the App Engine docs, what is the ellipsis (JID...) for in this method signature?
public MessageBuilder withRecipientJids(JID... recipientJids)
What’s the function of those three dots?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Those are Java varargs. They let you pass any number of objects of a specific type (in this case they are of type JID).
In your example, the following function calls would be valid:
See more here:
http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html