add notes about the new constructor

This commit is contained in:
Ben Fry
2015-05-16 20:00:01 -04:00
parent 0a213ef21e
commit c5f410d722
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -44,6 +44,10 @@ public class StringList implements Iterable<String> {
}
/**
* Construct a StringList from a random pile of objects. Null values will
* stay null, but all the others will be converted to String values.
*/
public StringList(Object... items) {
count = items.length;
data = new String[count];