public class TextareaStringListUtility extends Object
| textarea | list of string |
|---|---|
| a[LF] b[LF] c[LF] |
"a", "b", "c" |
| a[LF] b[LF] c[LF] |
"a", "b", "c" |
| a[LF] b[LF] c[LF] [LF] |
"a", "b", "c", "" |
| [LF] |
"" |
| (empty list) | |
| (null) | (empty list) |
| Constructor and Description |
|---|
TextareaStringListUtility() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
stringListFromTextarea(String choiceListText)
Returns a list of string parsed from a input of textarea.
|
static String |
textareaFromStringList(List<String> stringList)
Join the list of strings into a text.
|
Copyright © 2016–2017. All rights reserved.