|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
net.fortuna.ical4j.model.NumberList
public class NumberList
Defines a list of numbers.
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
NumberList()
Default constructor. |
|
NumberList(int initialCapacity)
Creates a new instance with the specified initial capacity. |
|
NumberList(java.lang.String aString)
Constructor. |
Method Summary | |
---|---|
boolean |
add(java.lang.Integer aNumber)
|
boolean |
add(java.lang.Object arg0)
Overrides superclass to throw an IllegalArgumentException
where argument is not a java.lang.Integer . |
boolean |
remove(java.lang.Integer aNumber)
|
java.lang.String |
toString()
|
Methods inherited from class java.util.ArrayList |
---|
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Constructor Detail |
---|
public NumberList()
public NumberList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic NumberList(java.lang.String aString)
aString
- a string representation of a number listMethod Detail |
---|
public final boolean add(java.lang.Integer aNumber)
aNumber
- a number to add to the list
public final boolean add(java.lang.Object arg0)
IllegalArgumentException
where argument is not a java.lang.Integer
.
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.ArrayList
List#add(E)
public final boolean remove(java.lang.Integer aNumber)
aNumber
- a number to remove from the list
public final java.lang.String toString()
toString
in class java.util.AbstractCollection
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |