Top Description Fields Constructors Methods
net.fortuna.ical4j.model

public Class TextList

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
net.fortuna.ical4j.util.Strings, java.io.Serializable, java.util.*, java.util.regex.Pattern, java.util.stream.Collectors

$Id$ [23-Apr-2004] Defines a list of iCalendar text elements.
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private static final Pattern
private static final long
private final Set<String>

Constructor Summary

AccessConstructor and Description
public
TextList()

Default constructor.

public
TextList(final String
a string representation of a list of categories
aValue
)

Parses the specified string representation to create a list of categories.

public
public
TextList(String...
an array of text values
textValues
)

Method Summary

Modifier and TypeMethod and Description
public final TextList

Returns:

true
add
(final String
the category to add
text
)

Add an address to the list.

public Set<String>
public final TextList

Returns:

true if the list contained the specified text element
remove
(final String
the text element to remove
text
)

Remove a text from the list.

public final String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

PATTERNback to summary
private static final Pattern PATTERN
serialVersionUIDback to summary
private static final long serialVersionUID
textsback to summary
private final Set<String> texts

Constructor Detail

TextListback to summary
public TextList()

Default constructor.

TextListback to summary
public TextList(final String aValue)

Parses the specified string representation to create a list of categories.

Parameters
aValue:String

a string representation of a list of categories

TextListback to summary
public TextList(List<String> texts)
TextListback to summary
public TextList(String... textValues)
Parameters
textValues:String[]

an array of text values

Method Detail

addback to summary
public final TextList add(final String text)

Add an address to the list.

Parameters
text:String

the category to add

Returns:TextList

true

See Also
List#add(java.lang.Object)
getTextsback to summary
public Set<String> getTexts()
removeback to summary
public final TextList remove(final String text)

Remove a text from the list.

Parameters
text:String

the text element to remove

Returns:TextList

true if the list contained the specified text element

See Also
List#remove(java.lang.Object)
toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override