net.fortuna.ical4j.model
Class NumberList
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
net.fortuna.ical4j.model.NumberList
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- public class NumberList
- extends ArrayList
- implements Serializable
Defines a list of numbers.
- Author:
- Ben Fortuna
- See Also:
- Serialized Form
Constructor Summary |
NumberList()
Default constructor. |
NumberList(int initialCapacity)
Creates a new instance with the specified initial capacity. |
NumberList(String aString)
Constructor. |
Methods inherited from class java.util.ArrayList |
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
NumberList
public NumberList()
- Default constructor.
NumberList
public NumberList(int initialCapacity)
- Creates a new instance with the specified initial capacity.
- Parameters:
initialCapacity
- the initial capacity of the list
NumberList
public NumberList(String aString)
- Constructor.
- Parameters:
aString
- a string representation of a number list
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
.
- Specified by:
add
in interface List
- 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:
Object.toString()