public final class JavascriptUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toArray(Collection<String> collection)
Converts a collection of Strings into a Javascript array.
|
public static String toArray(Collection<String> collection)
Converts a collection of Strings into a Javascript array.
For example, the following collection:
("strint1", "string2", "string3")
will be converted to:
['strint1', 'string2', 'string3']
collection
- The collection of Strings to convert into a Javascript array.Copyright © 2013–2015 Dandelion Project. All rights reserved.