net.fortuna.ical4j.model

Class NumberList

Implemented Interfaces:
Serializable

public class NumberList
extends ArrayList
implements Serializable

$Id: NumberList.java,v 1.13 2008/12/16 12:34:52 fortuna Exp $ [29-May-2004] Defines a list of numbers.

Constructor Summary

NumberList()
Default constructor.
NumberList(String aString)
Constructor.
NumberList(int initialCapacity)
Creates a new instance with the specified initial capacity.

Method Summary

boolean
add(Integer aNumber)
boolean
add(Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a java.lang.Integer.
boolean
remove(Integer aNumber)
String
toString()

Constructor Details

NumberList

public NumberList()
Default constructor.

NumberList

public NumberList(String aString)
Constructor.
Parameters:
aString - a string representation of a number list

NumberList

public NumberList(int initialCapacity)
Creates a new instance with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity of the list

Method Details

add

public final boolean add(Integer aNumber)
Parameters:
aNumber - a number to add to the list
Returns:

add

public final boolean add(Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a java.lang.Integer.
See Also:
List.add(E)

remove

public final boolean remove(Integer aNumber)
Parameters:
aNumber - a number to remove from the list
Returns:

toString

public final String toString()
See Also:
java.lang.Object.toString()