public class TextList extends Object implements Serializable, Iterable<String>
Constructor and Description |
---|
TextList()
Default constructor.
|
TextList(String... textValues) |
TextList(String aValue)
Parses the specified string representation to create a list of categories.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(String text)
Add an address to the list.
|
boolean |
isEmpty() |
Iterator<String> |
iterator() |
boolean |
remove(String text)
Remove a text from the list.
|
int |
size() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TextList()
public TextList(String aValue)
aValue
- a string representation of a list of categoriespublic TextList(String... textValues)
textValues
- an array of text valuespublic final boolean add(String text)
text
- the category to addList.add(java.lang.Object)
public final boolean isEmpty()
List.isEmpty()
public final Iterator<String> iterator()
iterator
in interface Iterable<String>
List.iterator()
public final boolean remove(String text)
text
- the text element to removeList.remove(java.lang.Object)
public final int size()
List.size()