net.fortuna.ical4j.model

Class CategoryList

Implemented Interfaces:
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.

Constructor Summary

CategoryList()
Default constructor.
CategoryList(String aValue)
Parses the specified string representation to create a list of categories.
CategoryList(String[] categoryValues)

Method Summary

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()

Constructor Details

CategoryList

public CategoryList()
Default constructor.

CategoryList

public CategoryList(String aValue)
Parses the specified string representation to create a list of categories.
Parameters:
aValue - a string representation of a list of categories

CategoryList

public CategoryList(String[] categoryValues)
Parameters:

Method Details

add

public final boolean add(String category)
Add an address to the list.
Parameters:
category - the category to add
Returns:
true
See Also:
List.add(java.lang.Object)

isEmpty

public final boolean isEmpty()
Returns:
boolean indicates if the list is empty
See Also:
List.isEmpty()

iterator

public final Iterator iterator()
Returns:
an iterator
See Also:
List.iterator()

remove

public final boolean remove(String category)
Remove a category from the list.
Parameters:
category - the category to remove
Returns:
true if the list contained the specified category
See Also:
List.remove(java.lang.Object)

size

public final int size()
Returns:
the number of categories in the list
See Also:
List.size()

toString

public final String toString()
See Also:
java.util.AbstractCollection.toString()