net.fortuna.ical4j.model
Class CategoryList
java.lang.Object
net.fortuna.ical4j.model.CategoryList
- Serializable
public class CategoryList
extends java.lang.Object
implements Serializable
$Id: CategoryList.java,v 1.13 2008/12/16 12:34:52 fortuna Exp $ [23-Apr-2004]
Defines a list of iCalendar categories.
boolean | add(String category) - Add an address to the list.
|
boolean | isEmpty()
|
Iterator | iterator()
|
boolean | remove(String category) - Remove a category from the list.
|
int | size()
|
String | toString()
|
CategoryList
public CategoryList()
Default constructor.
CategoryList
public CategoryList(String aValue)
Parses the specified string representation to create a list of categories.
aValue
- a string representation of a list of categories
CategoryList
public CategoryList(String[] categoryValues)
add
public final boolean add(String category)
Add an address to the list.
category
- the category to add
List.add(java.lang.Object)
isEmpty
public final boolean isEmpty()
- boolean indicates if the list is empty
iterator
public final Iterator iterator()
remove
public final boolean remove(String category)
Remove a category from the list.
category
- the category to remove
- true if the list contained the specified category
List.remove(java.lang.Object)
size
public final int size()
- the number of categories in the list
toString
public final String toString()
java.util.AbstractCollection.toString()