|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.dandelion.datatables.core.util.JavascriptUtils
public class JavascriptUtils
| Field Summary | |
|---|---|
static String |
INDENT
|
static char |
NEWLINE
|
| Constructor Summary | |
|---|---|
JavascriptUtils()
|
|
| Method Summary | |
|---|---|
static String |
toArray(Collection<String> collection)
Converts a collection of Strings into a Javascript array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char NEWLINE
public static final String INDENT
| Constructor Detail |
|---|
public JavascriptUtils()
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||